K
Kindemoroshko

Custom properties added to the wrong token

I added custom properties to the id token, but I see them added to the access token instead of the id token. Is this a known issue?
No description
Oli - Kinde
Oli - Kindeβ€’18d ago
Hi @moroshko, I cannot reproduce this issue. After you have added the specified custom properties to the ID token, are you able to logout and back into your app. If the issue still exists, are you willing to share the claims of your ID and access tokens?
moroshko
moroshkoβ€’18d ago
Just tried to reproduce this again and do a recording, but now I started getting a new issue: /api/auth/kinde_callback crashes with 500
KindeSDKError: Attempting to commit invalid access_token token
I'm using the Next.js SDK. Is this a known issue?
Oli - Kinde
Oli - Kindeβ€’18d ago
I am not aware of this issue. I wil get one of my teammates to look into this issue tomorrow.
moroshko
moroshkoβ€’18d ago
Oh, I just realized that I moved my machine clock a few days ahead and forgot about that πŸ™‚ Now that I synced the clock again, the issue disappeared πŸ™‚ Let me get back to you regarding your ask above. DMed you the tokens
Oli - Kinde
Oli - Kindeβ€’15d ago
Hi @moroshko, I can now reproduce the issue above with custom properties being added to the access token instead of the ID token. My team are already looking into a fix. Sorry the inconvenience caused with this issue. Hey @moroshko, Are you being blocked by this issue? If so, I want to help you find a workaround for the meantime. Let me know.
moroshko
moroshkoβ€’15d ago
Thanks for looking into this. I'm blocked in a sense that I can't currently rely on the custom properties to exist in the id token. I can get them from the access token, but if the issue is going to be fixed then I guess the property will suddenly disappear from the access token which will break things. I can wait until this is fixed. I just surprised that no one else has raised this.
Oli - Kinde
Oli - Kindeβ€’15d ago
Dave, our co-founder, is the best person to fix this issue. He will continue to look into a fix on Monday. If you are willing to wait for a fix, then I will let you know once it's fixed.
moroshko
moroshkoβ€’15d ago
No worries, keep me updated!
Oli - Kinde
Oli - Kindeβ€’15d ago
Will do!
moroshko
moroshkoβ€’12d ago
@Oli - Kinde Just checking to see if there are any news on this issue?
Oli - Kinde
Oli - Kindeβ€’12d ago
Hey @moroshko, We are still implementing a fix to this issue. Apologies for the inconvenience.
moroshko
moroshkoβ€’12d ago
Thanks for the update
Oli - Kinde
Oli - Kindeβ€’12d ago
Hey @moroshko, There is a PR with a fix to this issue, that is currently being reviewed
moroshko
moroshkoβ€’12d ago
great to hear, appreciate the update!
Oli - Kinde
Oli - Kindeβ€’5d ago
Hey @moroshko, This issue has been resolved
Want results from more Discord servers?
Add your server
More Posts
Extending KindeIdToken type to include the `organizations` claimI added an `organizations` claim to the id token and would like TypeScript to know about it so I couuseKindeAuth isLoading doesn't change to falseTrying to get the org in a client component, but `isLoading` does not change to `false`. What am I Getting organization handle in id token claimsWhen user visits `myapp.com/org-handle`, I'd like to check whether the user has access to the `org-hPermission doesn't workI added an "admin" permission to a user. However, `await getPermissions()` returns no permissions: `How to sign the user out when /logout is visited?In my Next.js App Router application, I'd like to automatically sign the user out when the user visiShould I include user model in database schema? And how to handle users registering their business?Hi, how should I handle database schema while using Kinde? Should I try for creating user model in misAuthenticated === false vs user === nullIs there any difference (maybe performance?) between: ``` import { getKindeServerSession } from "@kiMulti-factor auth using SMS - Where is the user's phone number stored?I enabled "Multi-factor authentication". The first time I logged in using Google, I was asked to entProtecting routes in Next.js App Router middlewareDocs at https://kinde.com/docs/developer-tools/nextjs-sdk/#protect-routes-using-middleware mention: User's first and last names are overridden when user logs in using GoogleAfter user signs up using Google, their first and last names in KindeUser are pre-populated from the`await getUser()` doesn't return the first and last nameIn my Next.js App Router application, in a page component, I get the user: ``` const { getUser } = gDoes Kinde provide Login/SignUp components for custom Login/SignUp pages?I'd like to have a custom `myapp.com/login` page in Next.js App Router application, and render a LogSubscribe Form...React[solved] Hi, I want to include the subscribe form in a react (docusaurus) site. I want to have a buRevoke all access tokens from KindeHi, May I know how to revoke all access tokens from Kinde?Separate login per organizationI'm working on a multi-tenant application. I would like to allow the users to register per organizatKinde Management apiDid I misunderstood something here ? I'm trying to create a user with the role "user", but Kinde doProtect Next.js route handlers with machine-to-machine application?Hi, I want to expose the route handlers defined in Next.js 14 application for external applicationsLogout button doesn't renderedI have implemented user auth using kinde successfully and my ecommerce website is able to login andChaining Middlewares Next.JS Kinde + next-internationalHi, as the title says I'm struggling to figure out how to use two different Next.js middlewares togeHas anyone used kinde_flutter_sdk to build android app?I am having issues building android APK with kinde_flutter_sdk for auth. I install the SDK and witho