Kinde

K

Kinde

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

Join

Should 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 my database schema e.g. username email registryDate gotWarnings? If we answer this question and let's say I shouldn't create a user model since I use Kinde, how should I handle the situation users register their restaurants in my app? I'm not trying to ask something unrelated but how that relation works with the Kinde user and restaurant if I create the restaurant model. I use Convex as my...
No description

isAuthenticated === false vs user === null

Is there any difference (maybe performance?) between: ``` import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server"; const { isAuthenticated } = getKindeServerSession();...

Multi-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 enter my phone number to receive the verification code. I then logged out and logged in again. This time, the verification code was automatically sent to my previously entered phone number, which was very nice. However, I thought that the phone number would be stored in the Phone field on the user page, but the Phone field is blank. Where does Kinde store my phone number, and what happens if I enter a different phone number in the Phone field?...

Protecting routes in Next.js App Router middleware

Docs at https://kinde.com/docs/developer-tools/nextjs-sdk/#protect-routes-using-middleware mention:
As of right now the middleware in the app router does not work when trying to redirect to api/auth/login. This is because of Next.js caching which causes issues during authentication.
Should I read this as "currently, protecting routes in the middleware doesn't work, and the code examples mentioned in this docs section won't work either"? ...

User's first and last names are overridden when user logs in using Google

After user signs up using Google, their first and last names in KindeUser are pre-populated from the Google account. I then go to the Kinde UI and update user's first and last names (these fields are not disabled after all, suggesting they can be modified). If the user now signs out and logs in again, my custom set first and last names are overridden by the Google account's ones. Is this expected? If so, why the first and last names fields in the Kinde UI aren't disabled?...

`await getUser()` doesn't return the first and last name

In my Next.js App Router application, in a page component, I get the user: ``` const { getUser } = getKindeServerSession(); const user = await getUser();...

Does 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 Login component like in the screenshot. Does Kinde provide such component? (Similar to Clerk's SignIn component: https://clerk.com/docs/references/nextjs/custom-signup-signin-pages) The custom sign-in docs don't mention anything about pre-built components: https://kinde.com/docs/authentication-and-access/custom-authentication-pages/#custom-sign-up-and-sign-in-pages...
No description

Subscribe Form...React

[solved] Hi, I want to include the subscribe form in a react (docusaurus) site. I want to have a button that will just pop up the form as a modal. I was thinking to convert the form into a React component and simple submit using fetch like so (frontend is not my strong suite)...

Revoke all access tokens from Kinde

Hi, May I know how to revoke all access tokens from Kinde?...

Separate login per organization

I'm working on a multi-tenant application. I would like to allow the users to register per organization but I found a small issue. Scenario: 1. User tries to log into App A (represented in Kinde by Organization 1) - gets info that they don't have an account and are prompted to create one 2. Users registers in App A - user registered...
No description

Kinde Management api

Did I misunderstood something here ? I'm trying to create a user with the role "user", but Kinde does not seem to pick it up. It does not reflect on the dashboard. The key of the role I created is "user" ```` const apiClient = await createKindeManagementAPIClient();...

Protect Next.js route handlers with machine-to-machine application?

Hi, I want to expose the route handlers defined in Next.js 14 application for external applications to call using OAuth 2 client credentials flow. Can I do this with machine-to-machine application? I tried to get the access token like this,...

Logout button doesn't rendered

I have implemented user auth using kinde successfully and my ecommerce website is able to login and logout. But, after hosting to github and when I login to my account, I am redirected to the homepage but the login button is still there which is suppose to be the logout button(I look at the console and it says 'Invalid State'). But, when I click the login button again then the logout button is rendered. Pls help me solve this, I can send my code if you want.

Chaining Middlewares Next.JS Kinde + next-international

Hi, as the title says I'm struggling to figure out how to use two different Next.js middlewares together. Has anyone tried this Using the Kinde middleware + something else. Or am I approaching this the wrong way? ...

Has anyone used kinde_flutter_sdk to build android app?

I am having issues building android APK with kinde_flutter_sdk for auth. I install the SDK and without even using the sdk in the code just building the code to run on simulator I get the following error ```FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':flutter_inappwebview'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl....

Unable to login to our dashboard in Kinde

Hello, I'm getting this error when I sign in to my account 404 Domain not found The requested domain could not be found. ...

Billing feature launch date

When will the billing feature be available to integrate and use. At least give the tentative date

What would be the most secure way to create invitation link for users to join an organizations ?

I'm using resend to send the invitation link (Nextjs app router SDK). The link should be created with the org_code. I would like to make it one-time use. Let me know if you have any other security concerns I should think about. I know that I may need to implement the thing or a part of it myself. ...

Does the expo/RN SDK work with react native web?

Hi, I am starting a new project and wanted to know if the Expo SDK supports React Native Web?

How to prefill "First name" and "Last name" like we can do email with "login_hint"

We have a custom authentication page. So email/first name/last name are already curated. We are able to pass "email" via "login_hint" authUrlParam. Is there a way to also pass and prefill the first/last name ?...