Kinde

K

Kinde

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

Join

"AuthProvider gives access to auth data in your app"

Hi! I originally followed a youtube video on Kinde that didn't show the AuthProvider in the docs. The docs say that it's needed for token refreshing, but I'm a little confused how it is used for data access? Is it referring to client side data? Because so far I've only been using getKindeServerSession and it's been working fine...

Kinde auth on Electron

Hi everyone, i work in a tech company and we are thinking about implementing Kinde for our apps, we already did so for our web apps with Next.js and we really liked the product, now we are trying to integrate this kind of authentication with our desktop apps, that are made with Electron. I searched for some info about how to properly do it online but i couldn't find anything, does anyone have experience with this kind of integration? Specifically, on the frontend we use React and we tried integrating kinde within our React environment with the Kinde React libraries but we had some issues, maybe the right way to do it would be in the Node.js backend? In the supported backend there are no pure Node.js libraries so, would I need to install a framework within the Electron backend to make it work? Thank you for the support!...

Something went wrong - Error code: 1656

Hi everyone, I have a project that worked fine in development but, when going to production, shows the the "Something went wrong" message after authentication. This is a Django app, in production through Cloudflare. Is there a way to debug this, maybe getting a log or some hint about what is going wrong? Any ideas appreciated.
Authentication error...

Middleware: Not being redirected back to the protected page

Hi there! Enjoying Kinde so far, but each time I navigate to a protected page when signed out I'm redirected back to my home page '/', not the protected page I was going to. Probably something easy I've missed! Thanks, Nick...
No description

expressjs and protected routes with user roles

I am trying to find an example online of using express SDK and protecting routes for users with given roles. Is there anything out there?...

.env variables showing in HTML page source on React site

I got a site based on the React-Starter-Kit site running locally and online, I can log in and out of both. I hosted the site at Vercel where I had to copy the variables in my local .env file into Settings>EnvironmentVariables and I changed the URL. But I notice that when someone wants to find out my Kinde clientId from my env variables on my online site, they simply need to View Page Source, search for "clientId" and it is shown in plain text. Can this be prevented, or is this just a security issue we have to live with unless we use a server-side solution like Next.js, etc.?...
No description

User logged in even after deleted from Kinde

I used the starter kit on a React site to get a Register and Signin button to work. I can sign in on the site so that isAuthenticated is true. But then it wasn't clear how I could build a logout button. So I deleted the user from my list of users in my Kinde dashboard. But after being deleted, the user stayed logged in (isAuthenticated=true) on my site. That's not supposed to happen, right? If a user has been deleted from the list at Kinde, they should immediately be logged out from all sites, right?...

Can we send the signin link of our app in an Email from my NextJS app?

Hello! I'm using NextJS with Kinde and I would like to know if it's possible to create a link that could be send in an email so the user can directly access the sign in page...

Can we we use Kinde just for authentication?

This works fine when we use Google for authentication, but when using native Kinde it will check if the user exists... I don't need that, I'll do verification on my end. Preferably: User enters email -> doesn't matter if it exists in Kinde -> user receives an email -> user enters code -> kinde does callback to us -> we verify JWT -> we check if user exists ...
No description

Get current user role

Hello! Im using NextJS 15 with Kinde auth (love it so far) I have been looking through older posts about how to get the current users role, but I have not yet succeeded to find a solution. My goal is to get the role when fetching "getUser" through "getKindeServerSession"....

Entra AD - How can I get AD group information?

How can get the AD groups an Entra login is in?

Can KindeClient be a singleton in TS SDK?

DO I need to create a KindeClient every time I need it? Or can I create it once and reuse it? Is it cheap to create it? Ill be using it for Management API purposes (like create Users and Orgs)

How to Configure 1 org with email + password auth and all other orgs with MFA

Hi there, Currently, my default auth is set to use MFA. Since setting this as the default auth, we are needing to add support for external users (document signing) which will be added to one org named "External". Instead of using MFA for users in the External org, we would like to use email + password. How would I accomplish this? Would we need to use Advanced organization feature for the External org? Thanks!...

Custom SMTP settings using resend not working

Hi I'm trying to setup a custom email sender with resend, using the settings they mention in their docs: https://resend.com/docs/send-with-auth0-smtp However, when I try to send a "test email" the spinner keeps running infinitely, so not receiving an explicit error message either. ...
No description

unable to login using kinde on Android apk preview

Hi All, I am using expo and building an app with Kinde as the login interface, but it doesn't let me login to the application after installing the apk on my android device. Is it something related to the Environment in Kinde ? Am i doing something wrong ? Thanks!...

Management API SDK

Hi All, Just wondering if the function to delete user sessions is available using the JS management API SDK?

Authentication flow: Received: null | Expected: State not found (Next14, Vercel)

I've built V1 of my app, and auth is working fine locally. After deploying to vercel, I am getting the above error when attempting to login. If I navigate to the app again after this happens, it turns out I AM actually logged in, which makes me think it is an issue with redirects. I have confirmed my vercel environment variables match my kinde config...

Hide description in the password page

Other pages is possible to hide description in design setting, but the password page doesn't. Is it possible?
No description

How can I have a distinct login & registration experience without custom UIs?

This support post is in relation to https://discord.com/channels/1070212618549219328/1308179325752705145 as to not confuse or deviate from what the OP of that thread was after. Currently for registrations I am using Kinde's out of the box registration experience with a twist. I basically ask a few questions, store the answers, and then kick off Kinde's out of the box registration workflow. Once registration is completed I resume the process with follow-up questions before completing my applications setup which includes storing details (including correlating the Kinde data with my data) and setting up the organisation using Kinde's Management API. (I don't want to just auto create orgs) This is great because by using Kinde's out of the box workflow I don't need to write code to log in or register. But I can still have custom activities before and after the Kinde part of the process....

undefined access_token when using session manager with typescript SDK

Hi all! I'm having trouble calling my API in a NextJS Hono server monorepo. I'm wanting to call an API and check for auth but eaverytime I do my server throws a 500 as the access_token from Kinde is undefined in the session manager. Here is my session manager code: ``` export const sessionManager = (c: Context): SessionManager => ({...