After calling createOrg({ org_name: 'name' }) a call to /token that returns 500
I am manually calling createOrg as part of the onboarding flow in my react app and I have noticed that once the createOrg comes back and the receive the code in my callback there is a call that goes to /token which comes back with 500 response. the app still works with this.
Not sure if this is normal behaviour or because of the 500, after calling createOrg, the user is not automatically logged in the new Org
getOrganization()
returns no orgCode
Am I doing something wrong? is this an issue I need to work around?
thanksOli - Kinde•18d ago
Hi @mariodebono,
Let me speak to my team and get back to you.
mariodebono•18d ago
Thanks, let me know if you need further details.
leo_kinde•15d ago
Hi @mariodebono,
I don't think this is correct behaviour. Would you be able to DM be details of the token request (URL, querystring params, headers, timestamp) and I can look into it. Looking through logs I don't see any errors related to either business associated with your name.
mariodebono•15d ago
hi @leo_kinde sure, will do that soon. - thanks
Hi @leo_kinde, just tested the app again and I could not reproduce it, so I guess its no longer an issue.
I will ping you if I come across it again.
cheers
leo_kinde•15d ago
Glad it is working, if it happens again do let us know.
1KMembers
View on DiscordWant results from more Discord servers?
More PostsCustom properties added to the wrong tokenI added custom properties to the id token, but I see them added to the access token instead of the iExtending 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 bu