Kinde

K

Kinde

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

Join

how to request tokens using curl?

what i want: - retrieve token as authenticated test user in Kinde and make call to rest api using curl curl http://myapi.com/api -H 'authorization: Bearer {accessToken}' what i've done:...

Nuxt DB connection

I am using the Kinde Nuxt SDK and want to know the simplest way to connect a kinde-authed user to a DB to show their unique data? For simplicity I have set up an SQL lite DB with Prisma. I have noticed that the Next SDK is checking for the server session using the following import statement, but this is not obvious in the Nuxt SDK? import {getKindeServerSession} from "@kinde-oss/kinde-auth-nextjs/server";...

Adding the audience in the Access token

I want to had an audience inside the access token since by default it's empty so following your documentation (https://docs.kinde.com/developer-tools/about/using-kinde-without-an-sdk/#request-parameters) I'm doing something like this : https://<your_kinde_sudomain>.kinde.com/oauth2/token...

kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array

I am getting an error when fetching: kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array, but when I fetch other functions works correctly any idea why this might happen? My setup is Nuxt+NitroJS (nodejs)...

Import from Auth0 not showing social logins or logins_count

I intend to go-live with Kinde tomorrow morning (Pacific time) have a couple of issues / questions regarding Auth0 import. I performed an import from Auth0 and included all the columns mentioned in the Auth0 migration support doc. I noticed, however, that the logins_count CSV column doesn't seem to be imported as all my users show that they have never logged in (all login counts show 0). This isn't a huge deal, but does make me want to confirm that my import worked correctly in general....

custom signin/signup page

Hi im using nextjs and i was wondering where do i pass the password? <LoginLink className={styles.button} authUrlParams={{...

React Native SDK: Android Login not working

Hello, I am using the Kinde react-native-sdk for 0.7x with Expo, and my login() function is not working on Android. On iOS, it works perfectly, however on Android I am receiving this error: Something wrong when trying to authenticating. Reason: The method or property WebBrowser.openBrowserAsync is not available on android, are you sure you've linked all the native dependencies properly?...

Fetch roles inside token

I have an issue for getting back the roles inside the access token. My user has a default role and I ticked Roles from customize access token: Did I forgot to activate something ? Thanks for your help...
No description

Kinde + Supabase

Hi, I'm trying to enable RLS in Supabase by syncing the Kinde Client Secret with the Supabase JWT Secret. The idea is to parse the 'sub' attribute from the JWT and then match it against a user_id value in the target db table. (before granting SELECT permission) I've been following this handy guide: https://kinde.com/blog/engineering/kinde-with-supabase/ But I'm using the Next.js app router, not the pages router, and I need some help understanding how to adapt this to the app router. I can get the frontend to successfully retrieve data with RLS disabled, but I can't seem to get RLS to work. I suspect that the token may not be passing successfully to Supabase??.. even though according to the guide, "Supabase automatically authenticates the API connections with the JWT token that we have setup. Since our Kinde and Supabase token secrets are the same (See the Supabase Setup above), the authentication handshake should be done automatically and we do not have to do anything else." I'm also unclear about how to implement the Supabase db function (get_user_id() in the guide) - does this get referenced in the RLS policy itself? Or does it automatically trigger based on a db SELECT call?...

When requesting /oauth2/token, does the endpoint returns the same token or issues a new one?

Quick question, when doing M2M api calls, and trying to fetch the oauth2/token from kinde, does the endpoint returns the same token until expiry or issues a new one? Do I need to locally save the token until expiry or its safe to call the endpoint multiple times without worries?...

Workflow with separate NodeJS/Vue Webapp?

I'm wondering what the proposed workflow is for a webapp that has a backend (nodejs/express) and a frontend (vue), I'm using Supertokens now, which has code for both backend and frontend, and I would love to switch to Kinde, thanks!

How do you update user details from own-app?

Hello, As the title says, how does one update the user details from the app, not from kinde (manually), there's no information regarding this. How to update:...

From @jasdeep about tokens

Copied from #💬┃general channel - a question from @jasdeep Hi all, newbie here and building a flutter app using Kinde Auth. I am trying to understand how this works. As per docks Kinde SDK take care of fetching new token automatically under the hood if refresh token is valid and access_token has expired. I am assuming it is happening while user is very much active on the app. I am wondering how does SDK get access to refreshToekn in scenario when user navigates away from the app and puts the app in background and when app comes back into focus, the access_token has expired but refresh token should still be valid. I understand that I can save access_token and refreshToken in secure storage but I don't see any method available on SDK which makes use of refresh token to fetch new access_token. Am I missing something here?...

Kinde Webhook

Dear Kinde Support Team, We are encountering a persistent issue with webhook requests sent to our endpoint "https://{*******}.convex.site/kinde-webhook". Our logs indicate that the Authorization header is consistently missing from the incoming requests, and we are unable to authenticate and process these requests as expected. Additionally, we've faced repeated issues with JSON parsing errors, specifically an "Unexpected token 'e'" error, suggesting that the payload might be incorrectly formatted or encoded. Here is an example of the error message from our logs:...

Nuxt useKindeClient not working properly

Hello, I'm trying to use Kinde with Nuxt, the module is quite barebones and doesnt seem to support all things, a few things I want to do: 1. Custom Sign In / Sign Up...

ext_provider in id_token is not present after the user change org with login + org_Code

Hi, I have set up the Customize ID token to include the social identity I am using this to enable features around the user profile mostly. When the user is signed out and signs in with Google(i tested only google so far). The expected ext_provider is present in the id_token as expected. When the user is signed in and wants to login in a different (or same) organisation with ...

"@kinde-oss/kinde-node-express" doesn't support module js project

Hi I am trying to validate a user token send from my react frontend appliction to the node express server. My node express server is written module js and use named imports. But it seems like named imports doesn't supports by the "@kinde-oss/kinde-node-express" can someone guide me to fix this issue ``` [nodemon] app crashed - waiting for file changes before starting... [nodemon] restarting due to changes......
No description

Why wont the the login funcion work on loccalhost but in vercel it works

The vercel on works but, not localhost idk if i have to change the env variables inside the file or if it in here the problem might be. Should i after 3000 add the path to the page i want it to redirect it to?...
No description

How to understand the relationship between Id, Access and Refresh tokens

Hello, we are trying to track down an issue with our app where users appear to be logged out after an hour of inactivity. I say "appear" since I don't believe they are actually being logged out, but rather there is a mismatch with token refreshing. FWIW we are using the Kinde default expiry values ID token 3600 Access token 86400...

TypeError: Cannot read property 'KindeSDK' of undefined

``` // NPM import {useState, useEffect} from 'react'; import {KindeSDK} from '@kinde-oss/react-native-sdk-0-7x'; ...
No description