Starman
KKinde
•Created by Starman on 12/13/2023 in #💻┃support
Unexpected Character Error with KindeSDK in Expo/React Native
Hi there,
I'm currently working on an Expo React Native project where I'm using the KindeSDK for authentication. I've run into an issue that I'm having trouble resolving.
Here's the relevant part of my code:
When I try to sign up or sign in, I get the following error:
It seems like both the client.register() and client.login() methods are returning a Promise that resolves with something that's not JSON since the error is logged twice. The '<' suggests that HTML or JSX may be returned, it could also indicate that the endpoint doesn't exist. This is odd since it was working perfectly fine before, I'm not sure why that's happening or how to fix it.
I may be missing something very obvious here, but even if so I though it would make sense to post incase anyone else encounters this issue. Any help would be greatly appreciated.
Cheers!
29 replies