Masini
Masini
KKinde
Created by Masini on 5/14/2024 in #💻┃support
React Native SDK: Android Login not working
Any update on when the build is going to be released? The login flow on android is really buggy especially when asking the user to input their verification code sent through email, the kinde login screen just gets dismounted as soon as the user puts the app in the background, and the user is practically unable to login to the app unless he obtains the verification code from a different device.
16 replies
KKinde
Created by Masini on 5/29/2024 in #💻┃support
"PropertyRequiredException: Issuer cannot be empty, js engine: hermes" error on Android APK
I solved the issue by adding the environment variables to my "eas.json" under the "env" property for my build profiles.
5 replies
KKinde
Created by Masini on 5/14/2024 in #💻┃support
React Native SDK: Android Login not working
Just fixed it because I had incorrect callback URIs in my ENV for my development build. Thanks
16 replies
KKinde
Created by Masini on 5/14/2024 in #💻┃support
React Native SDK: Android Login not working
Just tested this on an android simulator, when pressing sign in the kinde sign in page just keeps loading forever. Please reach out and suggest some possible fixes because otherwise we're going to have to change our Auth provider since this is holding us back from progressing to the next phase of our project.
16 replies
KKinde
Created by Masini on 5/14/2024 in #💻┃support
React Native SDK: Android Login not working
Any updates on this please? @Daniel_Kinde
16 replies
KKinde
Created by Masini on 5/14/2024 in #💻┃support
React Native SDK: Android Login not working
Atleast on iOS it still works perfectly fine. The problem seems to be Android. I only tested this on a single device as of yet (it's pretty old), I'll see if I can try it with another Android device and see if the same problem occurs
16 replies
KKinde
Created by Masini on 5/14/2024 in #💻┃support
React Native SDK: Android Login not working
Does this only work for development builds? Because otherwise it's gonne be a major pain to work with during development
16 replies
KKinde
Created by Masini on 5/14/2024 in #💻┃support
React Native SDK: Android Login not working
I did this and the browser with the Kinde login page is successfully being opened. However, when testing this on Expo Go, whenever I try to Sign In/Sign Up, instead of redirecting me to the correct pages, it opens up another new instance of the Expo Go app with my project and takes me back to the log in screen. Then when I try to tap on the Sign In/Sign Up buttons, the same error is given as the one I specified in my post.
16 replies
KKinde
Created by Masini on 4/29/2024 in #💻┃support
Express Protected Routes: How to pass JWT from client?
I can confirm that my JWT is valid and I implemented it the same way. However it's still not working. From my API, the only thing being logged is "undefined". Below are the code snippets: Expo:
const jwt = await Storage.getAccessToken();
if (!jwt) {
throw new Error("No JWT available!");
}

console.log(jwt);

const response = await fetch(
`${process.env.EXPO_PUBLIC_CLOUDFLARE_API_URL}/test`,
{
method: "GET",
headers: {
"Content-Type": "application/json",
'Authorization': `Bearer ${jwt}`,
},
}
);

if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}

const data = (await response.json());
const jwt = await Storage.getAccessToken();
if (!jwt) {
throw new Error("No JWT available!");
}

console.log(jwt);

const response = await fetch(
`${process.env.EXPO_PUBLIC_CLOUDFLARE_API_URL}/test`,
{
method: "GET",
headers: {
"Content-Type": "application/json",
'Authorization': `Bearer ${jwt}`,
},
}
);

if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}

const data = (await response.json());
Express API:
router.get("/test", protectRoute, getUser, (req, res) => {
const user = (req as any).user as UserType;

if(!user) throw new Error("User is undefined");

console.log("USER: ", user);

res.status(200).json("success");
})
router.get("/test", protectRoute, getUser, (req, res) => {
const user = (req as any).user as UserType;

if(!user) throw new Error("User is undefined");

console.log("USER: ", user);

res.status(200).json("success");
})
8 replies