Daniel_Kinde
Daniel_Kinde
KKinde
Created by mkB on 6/4/2024 in #💻┃support
Attempting to commit invalid access_token token
HI @Abel Trần sorry I missed your message, are you still getting this error?
15 replies
KKinde
Created by __maxom__ on 2/16/2025 in #💻┃support
Kinde Error:
If you look at the last snippet, the hook needs to be used inside the KindeProvider
30 replies
KKinde
Created by __maxom__ on 2/16/2025 in #💻┃support
Kinde Error:
you're missing the RouterProvider
function InnerApp() {
const auth = useAuth()
return <RouterProvider router={router} context={{ auth }} />
}

function App() {
return (
<AuthProvider>
<InnerApp />
</AuthProvider>
)
}
function InnerApp() {
const auth = useAuth()
return <RouterProvider router={router} context={{ auth }} />
}

function App() {
return (
<AuthProvider>
<InnerApp />
</AuthProvider>
)
}
30 replies
KKinde
Created by __maxom__ on 2/16/2025 in #💻┃support
Kinde Error:
I can't see anywhere you are setting auth?
30 replies
KKinde
Created by __maxom__ on 2/16/2025 in #💻┃support
Kinde Error:
I can't see createRootRouteWithContext in the above code snippets
30 replies
KKinde
Created by __maxom__ on 2/16/2025 in #💻┃support
Kinde Error:
HI @maxom Looking at your above example.
You should be able to simply call

const { login } = useKindeAuth();

if (!context.auth.isAuthenticated) {
console.log("Not authenticated, location: ", location.pathname);
// Redirect as not logged in.
login();
}

const { login } = useKindeAuth();

if (!context.auth.isAuthenticated) {
console.log("Not authenticated, location: ", location.pathname);
// Redirect as not logged in.
login();
}
Have you tried this?
30 replies
KKinde
Created by yeswolf on 11/20/2024 in #💻┃support
unable to login using kinde on Android apk preview
Hi @jamisonsheppard, We have been working and looking into this. Our starter kit we have which does not use our SDK is working (https://github.com/kinde-starter-kits/expo-starter-kit), our SDK is packaged up version of this yet in most cases the error you're experiencing happens. We are working directly with Expo team and experts to understand further the cause and hope to have a solution soon. In the mean time please refer to our starter kit. Migration to our SDK will be simple in the future.
120 replies
KKinde
Created by Tito on 2/3/2025 in #💻┃support
Authenticating API calls with Kinde
In your TS config can you update these settings
"module": "esnext",
"moduleResolution": "node",
"module": "esnext",
"moduleResolution": "node",
61 replies
KKinde
Created by Tito on 2/3/2025 in #💻┃support
Authenticating API calls with Kinde
Does what is talked about here help you @corwin ?
61 replies
KKinde
Created by Tito on 2/3/2025 in #💻┃support
Authenticating API calls with Kinde
We are holding off fully pushing the new Expo SDK, there are a few edge cases which are causing frustrations, we are workign with Expo directly along side partners to get this resolved. We have the Expo starter kit which is a unpackaged version of the SDK which works correctly.
61 replies
KKinde
Created by Tito on 2/3/2025 in #💻┃support
Authenticating API calls with Kinde
I have just tried the package locally on a NextJS project and works with no errors. Could you let me know what NextJS version and package manager you're using please?
61 replies
KKinde
Created by Tito on 2/3/2025 in #💻┃support
Authenticating API calls with Kinde
The kinde managment-api-js package will handle that for you within your application.
61 replies
KKinde
Created by Tito on 2/3/2025 in #💻┃support
Authenticating API calls with Kinde
We have made lots of changes and updates to simplify the JS ecosystem over the last few months, docs are catching up.
import {Users, init} from "@kinde/manangement-api-js"

...
init()
const user = await Users.getUserData({ id: 'kp_xxx' });
import {Users, init} from "@kinde/manangement-api-js"

...
init()
const user = await Users.getUserData({ id: 'kp_xxx' });
61 replies
KKinde
Created by Tito on 2/3/2025 in #💻┃support
Authenticating API calls with Kinde
Because you're not using the authentication from NextJS, it does not know the context and not setup for the user. Within the access token you have a sub claim which contains the users Kinde ID. From this you can call the Kinde API to get the users details. For this you will have to create a M2M application within Kinde and setup the relevant scopes for access. Then use the JS Management package (https://github.com/kinde-oss/management-api-js) to request the users details.
61 replies
KKinde
Created by Tito on 2/3/2025 in #💻┃support
Authenticating API calls with Kinde
Hi @Tito, Dropping into this conversation.
With the starter kit, it uses the ExpoSecureStore from our @kinde/js-utils library. This unlocked all our helper methods. One of which is getUserProfile which will get the information form the idToken. This work for you? As for the getUser not working, your NextJS site is only receiving the access token, not the id token, so it will only know the rights and not the who it is. What are you lookign to achieve here?
61 replies
KKinde
Created by entropy on 12/2/2024 in #💻┃support
Error 500 with AuthProvider
Hi @entropy, we have released another update @kinde-oss/[email protected] this is we feel a RC for this next release. This we believe resolves the issue you're experiencing.
17 replies
KKinde
Created by danslo on 1/31/2025 in #💻┃support
Some users are are reporting issues signing in.
could you share here or DM me a link to your application?
12 replies
KKinde
Created by danslo on 1/31/2025 in #💻┃support
Some users are are reporting issues signing in.
For the users its happening for its is a persistent error?
12 replies
KKinde
Created by danslo on 1/31/2025 in #💻┃support
Some users are are reporting issues signing in.
Hi @danslo , I am looking into this now
12 replies
KKinde
Created by Chepe on 7/31/2024 in #💻┃support
React Native Expo-secure-storage
Expo and auth is horrid, I give you that. Our SDK is built on Expo tooling. We have this starter kit: https://github.com/kinde-starter-kits/expo-starter-kit/tree/main It does not use the main SDK and manually uses the expo tooling. This will get you moving. Would be good to understand at what point you're getting the errors, and also how you're triggering the expo build. It will help.
22 replies