Kinde

K

Kinde

Join the community to ask questions about Kinde and get answers from other members.

Join

Logging out of not only Kinde, but also the social provider (Google)

I've logged in to my application via Kinde's integration with Google. I'm able to access my app appropriately. I then realized I logged in via the wrong Google account so I use the logout button on my site which goes to Kinde's /logout endpoint. This appropriate logs me out of my site and apparently Kinde as well. I attempt to log back in. I'm presented with the Kinde login screen as expected. I select "Google"... This is where my problem is: I am not prompted to select my appropriate Google account, I simply automatically log in to my last Google account (which was incorrect and the whole reason I logged out in the first place)...

Next.js Build doesn't call getUser() from kinde

Hey all, Nextjs calls all of the requests in a file when running npm run build. This causes my requests to fire, but not kinde's getKindeServerSession() or getUser() functions. I'm trying to test my production build. I currently have Kinde set up to return a kinde object, which then sends a request to my backend to get the user object based on the kinde id....
No description

How do I go back from "Check your inbox"?

Some users reported they wanted to go back from this screen because they realised they wanted to use another email. We have this app in webview, so "go back" arrow is not an option. Is there an option to somehow display an "arrow back" on the screen somewhere? If not, we will need to hack this somehow, as many users were reporting this. Is there a native Kinde solution, please?...
No description

Next.js - blocking error upon login when creating new organisations

I've been creating new organisations, which was working as expected, but with the latest organisations, my support user is running into issues with the Kinde SDK after logging into such an organisation, even though I haven't made any changes compared to what was previously working. While this is still working correctly for previous organisations, it's blocking me from onboarding new customers at the moment so quite severe for my side and I hope somebody can help me figure out what might be going wrong....
No description

Strange bug with logins using @kinde-oss/kinde-auth-pkce-js

Both me and a user of my app were able to experience a redirect loop when authorizing with Kinde. Appears to have only been a temporary issue. POST /oauth2/token was returning 400 Bad Request with a Set-Cookie header. I wasn't able to get a response body out of Dev Tools/Inspect Element. I have a HAR saved if one of the Kinde team would like it, I can DM it to you ❤️...

/api/login route cannot found on build (NUXT)

hello, we got a problem on kinde nuxt module, problem is build or preview mode, when project run under dev mode everything is ok. but we run npm run build + start or preview /api/login navigate method cannot work. not found error on ssr
No description

Using Kinde as IDP

We're taking over some legacy service, while building out a new frontend. In our new frontend we are using Kinde for authentication. So from this old service it's providing us with SAML integration metadata XML and service metadata XML. Now we're trying to use kinde as the identity provider for customers who don't have their own. Does anyone know how to do this? Or has anyone got any experience with this?

Python SDK login issues with jwt iat validation.

Hello, I am implementing the python SDK into my python backend. Until this morning it has been working flawlessly but today I am getting an error when trying to log into an existing account. At callback after registration and login using google everything works. It is only when logging into an existing account that I get a 500 internal server error. The console displays the following error: jwt.exceptions.ImmatureSignatureError: The token is not yet valid (iat) This happens when tring to call kinde_client.get_user_details() ...

Access to user data

I see that we cannot access the passwords of the users of our platform, why? Even if they are hashed, couldn't you give the option? Since it is our platform and our users. Also, I see that there is no option to change the password of a user to another if we want or send mail to change it, etc, as it has other platforms like Supabase. Could you add that?

Subdomain Authentication

Hello, I am trying to work through a solution where I have a user click the RegisterLink from "@kinde-oss/kinde-auth-nextjs/components" on www.mysite.com, which will authenticate them on www.app.mysite.com. When developing locally I have the following env: KINDE_COOKIE_DOMAIN=.localhost:3000 KINDE_SITE_URL="http://localhost:3000"...

Verifying JWT provided by Kinde with PKCE extension

We are implementing kinde-auth-pkce-js in the front-end of our react application. We are able to login() with Kinde from client side and get hold of the JWT provided by Kinde by using await kindeClient.getToken(). How do we verify the Kinde JWT, on the server, when the JWT is originally obtained client side via pkce? The docs say we need code_verifier, code_challenge and code_challenge_method and we don't know where to obtain these values, server side...

React Native - expo

Hello! Im using Kinde within a React Native- expo project, I already built a NextJS application using Kinde, which works like a charm. When trying to build something similar in react native with the fitting SDK im seeing a issue right away, when using "getUserDetails" im not getting the set username of the logged in user. Ive checked the token-settings but have not found anything regarding enabling it to be within the object recieved from "getUserDetails". ...

How to get `post_login_redirect_url` to work

I’d like to redirect my user back where they were after they log in. For that i found the (undocumented) property post_login_redirect_url which is only mentioned in the Nextjs SDK docs. Unfortunately it did not add the search param to the kinde login URL 😦 Then we’ve got the other thing: how to get that URL back in my /callback endpoint?...
No description

Kinde returning Invalid callback URL, even though the URL is in our allowed list

After logging in, a request is made to Kinde for callback- GET https://<our_kinde_domain>/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A5173%2F%23%2Fauth%2Fcallback We get redirected to a Kinde error page that states the following """Looks like the allowed callback URLs in your Kinde application don’t include the one below You provided http://localhost:5173/#/auth/callback"""...

Login UX improvement

Hi team, we have users pass this login link instead of our app login. They copy the login link like this: https://YOUR_DOMAIN/auth/cx/_:nav&m:login&psid:01938a8dddc693804af8ef9e88cdbe80 instead of our web login https://YOUR_DOMAIN/login. After one day or two when a user accesses the link with session id again, it will trigger an infinite loading UI issue after putting down email and click continue. The user thought there was something wrong with our web server but actually I think it is the sess...

Error 500 with AuthProvider

Hi, I'm using Next.js 14/app router. When I wrap my app with the AuthProvider, I get a 500 error in the console. Is this expected? By the way, I'm also using withAuth with the Next.js middleware. Do I still need to wrap my app with the AuthProvider? Also, I noticed that most videos about Kinde never mention the AuthProvider component. XHRGET http://localhost:3000/api/auth/setup [HTTP/1.1 500 Internal Server Error 133ms]...

Register / sign up flow: Is it possible to have admin accept pending registrations?

Thanks in advance! I'd like to achieve the following flow - User lands to login page, options Register/Sign up and Login - User signs up - preferably using their socials eg. Github, G suite - By this, user is left waiting approval of their registration - Admin gets notification (via email/other) of awaiting registration...

Dynamic Redirect on SvelteKit Multi-tenant App

Hey! We're building a multi-tenant app so I'm trying to redirect the user to the appropriate custom domain (and/or subdomain) after signing in. For context imagine Substack or beehiiv. I'm trying to sign in the users of our tenants into the tenant's app they launched through us. I tried using the code below to redirect the user to tenant's subdomain. But it's still redirecting me to the KINDE_REDIRECT_URL set in the .env ...

Documentation on Kinde with Retool

What is the best approch to use Kinde with Retool to build dashboards for my customers?

Migrating out of Kinde connection for social auth

If I let users sign up with blank social auth keys (i.e., using Kinde keys for Discord, Google, etc), will I be able to somehow migrate those users out at some point? I imagine they would have to grant permissions again, but can I link their data from before and after?