Kinde

K

Kinde

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

Join

get organization custom properties

Hello everyone, quick question. I am trying to get the active organization's custom properties with getOrganization from getKindeServerSession, but it only returns the default properties (I enabled them on the token, but I don't think this is related to this). It also returns all other properties (name included) as null, even though they are set to something in the platform. The org code is properly returned. Any ideas? `{ orgCode: 'org_xxxxx', orgName: null,...

Authenticating API calls with Kinde

I have a react native app and a backend NextJS app both running Kinde. How to authenticate API calls from the app to the backend to authenticate a user? Authorization: Bearer {token} in http headers doesn't work with idToken or accessToken...

Private Relay Apple ID

I have Apple Social connection added to my user pool and I recently had a user created with an email address in the format of <random_chars>@privaterelay.appleid.com. After some initial investigation, it seems that a user can hide their email so Apple generates a random alias. How is this going to work when the user logs in again? My setup requires a known email address and must be unique per user, so is there a way to disable this and should it be disabled?

Middleware not protecting routes in version 2.5.0-11

Hi everyone, I was hoping to get some help with an issue i'm having with the middleware in my app. For context, I updated my kinde-auth-nextjs version to 2.5.0-11 to try and take advantage of the new token refresh behavior. I needed to do this as I was working on a feature to update the user's username in both my database as well as their identity on Kinde. The initial problem arose when I realized the updated username was not showing until the user logged out and logged back in. Therefore I looked into that issue and found a discussion post here: https://discord.com/channels/1070212618549219328/1322570554594693223 in which directed me to install version 2.5.0-11 in order to refresh the token seamlessly and receive my expected behavior of receiving the updated username in the new token. ...
No description

Some users are are reporting issues signing in.

Works fine for most users and we are unable to reproduce it. Some users report the following: Something went wrong when we tried to authenticate you, and we can’t offer a quick way out. Start a new session and try signing in again. Error code: 8809 What is error code 8809?...

Automatic Signup

I'm currently setting up a demo with Kinde for a client, and they want "Create account" to be implicit when you try to log in via OAuth (e.g Twitch or Google). Is there a way to do this?
No description

Edit home page?

New Kinde user. Created account. Visit my "page" and see "There's nothing to see here yet. But an awesome home page is coming soon." How to edit that home page?...

How does token expiration work?

Hello guys, I have an application to which an user signs in online and then he is working with a cached web application. How does token expiry work - will the user be still signed in infinitely? What happens if the token is expired? Will it fail? Will he get redirected? How does it work?

Nuxt + Kinde Module Logic Problems

Hello, We are using the Kinde Nuxt module for an application on Nuxt, and we are facing some issues. Let me first explain what we are trying to achieve. Goal: All application routes should be protected, and the user should be logged out and redirected to the login page based on token expiration....

Microsoft Entra ID (OAuth 2.0) - Always show sign-in button

My client set up Entra ID OAuth for Kinde (we also still have email + code login enabled for the app), and it seems like login works fine and automatically redirects any user with an email configured under home realm discovery to the M365 login, but we'd like to enable the "Sign in with Microsoft" button if possible. When I enabled the "Always show sign-in button" under the Entra ID configuration and hit save, nothing changes on the Kinde auth login page, and when I return back to the OAuth conf...
No description

Change redirect_uri in Remix framework

Hi! I'm testing kinde with react router v7 (remix) and everything seems to be working correctly, just one question. How can we change the redirect_uri? I've changed paths to use /auth instead of kinde-auth everywhere but the sdk still makes the request with the old url. Thanks a lot!...

Is it possible to set or update user id before or after user creation

I accidentally deleted a user from Kinde which is still in use in our application. The users id is spread across db tables. Is there a way to create a new user with the same user id or create a user and then update the user id in Kinde? Thanks!

Use Kinde Auth with Ionic react

Good day, I have an app built on top of Kinde auth with users who have signed up but upon implementation with ionic react using the Kinde React SDK, when the users logs in instead of being taken back to the app the auth call back url is just stuck in the browser. I must note ionic is for mobile apps a wrapper ontop of react

How to implement the token based authentication in GRPC interceptor with Python SDK?

I want to implement token-based authentication in a gRPC interceptor using the Python SDK. In the interceptor of a gRPC server’s request flow, I aim to validate the bearer token. Below is the code I have implemented so far:
 ```python class AuthInterceptor(grpc.ServerInterceptor):...

Pass custom parameters through authUrlParams

I have a multi-tenant/multi-app application. I'm trying to pass a custom parameter in authUrlParams to then access in the token as a custom claim. How?
Code:- <LoginLink authUrlParams={{ mz_application_id: "123" }}>Sign in</LoginLink> I've created a custom property for applications and marked it as public. The property passed in the token is null. I do receive a value if I set it through the UI, but this is not going to scale. Would love some guidance. Thx....

Kinde + react router v7 (remix)

Hi, the doc and code to integrate kinde into remix is not compatible with react-router v7, which is the new version for remix (remix and react-router merged). They have a really good doc about how to upgrade: https://reactrouter.com/upgrading/remix Could the kinde team look into it? 🙏...

Automatically call api/auth/logout

In local it work fine but in production after i login it automatic call api/auth/logout as you see in the image("status code 307 temporary Redirect"). Im using nextjs and deploy with vercel...
No description

Android getToken in non-activity classes.

Hi, In my use case, I'm trying to request to an API hosted on cloudflare worker in an Android background service. My plan is to use the getToken method to get the JWT, and the worker will verify the JWT, once its verified the worker will perform some task and return the result. However, I found that an AppCompatActivity is required to initialize the SDK, which is not possible to obtain in a background task. Thus I can't use the SDK nor get the JWT in non-activity classes. Is there an official way to mitigate this issue? I read the source code of the SDK. It seems like only the login and logout tasks requires an actual Activity. The rest of them including getToken() should work with a Context instance, which is quite easy to obtain in background tasks. If you guys are OK, I can submit a pull request to improve this 🙂 Thanks in advance!...

Where to pass `KINDE_REDIRECT_URL` instead of defining in `.env` file?

Hi, I am using sveltekit, I have gone through, kinde's sveltekit guide, in the document, it is mentioned to put such variables in .env file. (Variables like: KINDE_REDIRECT_URL, KINDE_POST_LOGOUT_REDIRECT_URL etc etc). Is there a way to not put these variables in .env file and pass it to the kinde client? (Reference: https://docs.kinde.com/developer-tools/sdks/backend/sveltekit-sdk/#configure-your-app)...

Kinde with Nuxt & Supabase

Hi, I was able to setup Kinde with my Nuxt project. However, I am having difficulty getting the access token to send it to Supabase, my backend. Since I am not using SSR, I am not sure what the correct mechanism is. Any help is appreciated. Thanks...