Kinde

K

Kinde

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

Join

GET /api/auth/setup 401

Hi, I've set up a new App in my Kinde, followed all the steps, added callback URL and I'm getting the 401 on this endpoint. What am I doing wrong? Currently just testing everything on localhost.

Failed to construct 'URL': Invalid URL at isCustomDomain

Started getting this in production this morning, any advise on trouble shooting? Seems to be coming from isCustomDomain function.

`getPermissions()` not returning latest data

Hi! I have a user with a role and a permission that is included as part of that role. however, when I do getPermissions() in the React Native SDK, it's returning an empty list of permissions - when I check for that specific permission with getPermission() it says isGranted: false However, in the Kinde UI, the user has that role (and thus the perms under that role) Is there anything I am missing? Thank you!...

is it possible to use session manager (typescript sdk) with client side only cookie?

I am using cloudrun for my app and I don’t want to use a redis server or database to hold session. Will the client only cookie for authentication work? :

Details Update Propagation takes too much time

Hello, I've noticed an issue, when I update an organisation (org name), and right after I do a fetch, the endpoint (management api) returns the old name, but when I call it after 1-2 seconds it returns the correct name. Is this latency common with all the APIs?...

Building Google non-Drive apps using Kinde

i am looking at the docs and scratching my head.... is there a way to use Google Access Tokens from Kinde users for other API stuff, like GMail? Or are only the integrations in Connected Apps supported right now? It would be great to be able to get a google api auth token from my kinde api to interact with Google and other backend services like Notion or Airtable....

TypeError: Cannot read properties of undefined (reading 'redirectURLBase')

Getting this error after installing the latest version of "@kinde-oss/kinde-auth-nextjs". Terminal saying: Error [ERR_HTTP_HEADERS_SENT]: Cannot append headers after they are sent to the client Any ideas?...

How to get the token in Nuxt?

In the JS SDK docs I can see const token = await kinde.getToken(); However I don't see this example in the Nuxt documentation, how can I get the token in Nuxt, to call my backend API? (node)...

how to do kinde's website example

How can I do that modal when clicking a signup button in the landing page?
No description

Secure Spring Boot App - M2M Tokens

How to add Authorization to My Spring Boot Application (Gateway Server) - For 3rd party services (i want to restrict access to certain API endpoints) i tried to use the M2M tokens but i getting 403 error on my API because scopes not sent (i tried to issue a client creds token with scopes but with no success * i added aud as my domain ) i did it without SDK just with Security config `httpSecurity.authorizeExchange(exchanges ->...

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?...