Kinde

K

Kinde

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

Join

Email undefined for apple id registration on dashboard page

When a user registers and is redirected to the dashboard page after signing up I am using the following code to get the user information. import {getKindeServerSession} from "@kinde-oss/kinde-auth-nextjs/server"; export default async function Dashboard() {...

Redirection without <RegisterLink>

Hi! I have a form submission which triggers a transactional email on my server as part of my onboarding process. How do I integrate a redirect to the Register page as part of my flow? Ideally, I'm trying to get the user to just click once ie form submission and then it gets pushed to the custom domain url for the registration process to begin. Thanks in advance.

next.js server => api

Hi, I’m working on a smaller project with some friends for planning our board game events. I’m in the middle of doing some auth when connecting my next.js server component with my next.js api, and I’m unable to use getKindeServerSession to get a valid session? ...

add-urls-to-kinde script

After creating a M2M application and setting the client_id and client_secret for my nextjs app. It seems that I can't get the addCallBackUrlToKinde function to work. I also added the scopes authorization related to application_redirect_uris to m2m application: Thank you for your help !...

MFA option not showing

I have made MFA optional for users. When they first sign up, they are given the option to connect authenticator app or decline to opt in. But if decline initially but they want to enable later on, for some reason the option is not showing when signing back in but when I go to Multi-factor auth settings for a user, it says I can prompt them on next sign in to enable it. But haven't seen much documentation on it, what can I do to approach this?

Token validation Azure prod

Hi, iam new @ programming. I have an application python backend en react vite frontend. Everything works fine locally. And also the api calls front end backend containers work. But when is fetch users it gets an 403 on Azure. I went to all the code etc etc. Bur i cant find it . I have a free account because of dev. But do i have ro do something on the Kinde side to get it to work on azure. I have all the url and logging in works. Kr Jos

Intro and questions of a new discord member

Hey guys! We started using Clerk earlier this year because we thought if Stripe invests in them they'll have billing integrated soon. Also Clerk is part of the data privacy framework, which makes it very GDPR compliant for the use in Europe. Furthermore, there's a wrapper of the react library of clerk for reflex, the python webframework I'm using. ...

how to set provided_id when creating user via management API?

I tried the following with no luck: ```python response = api.post(f"/user", json={ "profile": { "given_name": user.first_name,...

React Native @kinde/expo in the browser

Greetings, I'm a front-end dev from Melbourne, Australia and I'm currently working on a new React Native build which I'm hoping to use Kinde for authentication. I've done some searching through the discord for past support requests and have started using the @kinde/expo package. I've been able to integrate things for an iOS build according to the docs and hook up the provider and the useKindeAuth() hook, but I'm getting an error when I try to view the RN build on the web. ``` Static Rendering Error (Node.js) window is not defined...

Do Roles or Permissions update immediately in user session?

I am wanting to restrict access to certain NextJS routes and pages to users with either a role or permission but on update (only tested with roles), the role remain the same. My use-case is, I want to allow admins to edit members roles and user data but after updating the user, their data server or client side does not reflect the updated role. How would you recommend handling this? Thanks...

Haven’t been able to use Kinde on my node project . I have tried locally and on prod with Heroku

My issue is I can’t get to the kinde with screen , the login process is always skipped and goes directly to my index.html . This is my first time setting up auth , I tried with google auth directly and couldn’t make it work , I had the same issue and hoping kinde would be more straightforward . I develop heavily with chat gpt and Claude and haven’t been able to figure it out...

Issue: State not found error with express-session and Slack auth

Hi, I'm using the @kinde-oss/kinde-typescript-sdk package for authentication with Slack in my Node.js app (using Express and MongoDB for session storage). Everything was working fine until I changed the cookie.domain in my express-session configuration from xyz.example.com to .example.com. After this change, I started encountering the following error during authentication: Authentication flow: Received: 123456** | Expected: State not found...

Machine Api Access Token granted once but not again

I am using NextJS, and I make a request like this below `` const token = await fetch(https://app.kinde.com/oauth2/token`, { method: "POST",...

Check if the user already exists in Kinde

Hey, is there a way to check if a user (by email) is already registered with Kinde? I’m looking to migrate from Auth0 to Kinde and need to determine if the user already exists in Kinde so that I can direct them to the appropriate login page.

Unable to visit /admin/*

i have a nextjs app that has an admin page with sub pages like /admin/upload /admin/store etc, it all works in localhost, but in prod i get this behaviour, where clicking on the pages, or navigating via the url sends you back to /admin/ any ideas on what it is? im using app router and protecting with matcher: ["/admin/:path*"] in middleware

getUserOrganizations returning null

I have a user which is part of two organization, but when i call getUserOrganizations it returns null

I have a problem with "Invalid callback URL" issue

i tried everything i thought that may be causing the issue but still havent fixed it tried making new kind project , new vercel project , reinstall kinde but still nothing
No description

`onRedirectCallback` receiving `undefined` value in Remix

I am working from the Kinde Remix SDK documentation: https://docs.kinde.com/developer-tools/sdks/backend/remix-sdk/ I have the following code: ```ts // app/routes/kinde-auth.$index.tsx...

Email password configured but I get magic link

I have configured email and password by toggling in on in the kinde dashboard but when I try to use the creds in my react app, I get a otp-code auth flow. I can't seem to figure out why that is happening...
No description

getKindeServerSession() - secure?

Hi, I am currently building a webapp with NextJS and Kinde. If I use const {getUser} = getKindeServerSession(); in the server components, will fresh data be fetched directly from the Kinde database or does this method only read the cookie value of the currently logged in user? Use case: If users want to make changes to their profile data, only they should be able to do so. To check this condition, I first want to check if the user is authenticated, otherwise he will be redirected, and if he is, he can make changes to his profile data (server actions). The value is written to the secondary user database if the current user.id == userId in the database. Is there a better way to do this with one of the kinde tools?...