Kinde

K

Kinde

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

Join

Can the PKCE access token be used to authenticate/authorize requests

Hi, I am currently using clerk with a chrome extension. I want to switch to a service that supports Oauth PKCE flow. Clerk has it but the access token retrieved from this flow can not be used to authenticate requests. Does Kinde support PKCE fully? Can the nextjs middleware automatically verify/permit requests with the PKCE access token?...

Set up a Subscription form for Nextjs App.

I am using kinde to set up a subscription form to build a waitlist and generate interest on the landing page of my app before it is ready for the public. After subscription, I am redirected to
https://<subdomain>.kinde.com/widgets/subscribe/v1/subscribe
https://<subdomain>.kinde.com/widgets/subscribe/v1/subscribe
with the json:
{ "status": "success", "message": "Success! You'll be notified as soon as Smartnote is ready." }
{ "status": "success", "message": "Success! You'll be notified as soon as Smartnote is ready." }
. When a user has already subscribed, I get this error message:
400 Bad request
Sorry, you can not access that page.
You can return to the homepage.
400 Bad request
Sorry, you can not access that page.
You can return to the homepage.
...

Need help with roles (setPermission(s), setRole(s))

Hey. I want to programmatically set roles/permissions for users, is this in any way possible, or should I use a seperate db to implement this. The Kinde next app router v2 server/clientside libs give me getters for a lot of stuff but it seems that a lot of stuff can be set only manually....

Firebase auth with Kinde. for firebase storage to write security access

I wanted to use firebase and its security policy for a production application. and inorder to do that I need to create a firebase user. my existing application is using kindeAuth. I have been reading documentation from both sides and its messing up. is there anyway that i can implement firebase auth along with kinde ? thanks....

Java SDK Support for Spring Boot 3

Hey, a few days back I've created this issue on GitHub - https://github.com/kinde-oss/kinde-java-sdk/issues/4. It's mostly about moving from Spring Boot 2 to Spring Boot 3 with the SDK, because unfortunately backwards compatibility from 3 to 2 is not possible. ...

Typescript SDK middleware route handling.

Building a project using fresh.deno and Kindes Typescript SDK. Have it setup, with pretty basic implementation. Having some issues about how to best setup the _middleware.ts file so we can create private/protected routes. Have anyone made an example for how to best implement it??. Thanks again..

Multiple audiences

Hi, I'm trying to use multiple audiences as described in the javascript-sdk (https://kinde.com/docs/developer-tools/javascript-sdk/) ``` const kinde = await createKindeClient({ audience: "<your_api1> <your_api2>"...
No description

Kinde + Bun + Hono + React

Hey I was just hoping to get some advice/validation on code I've written for using Kinde with a bun and hono app. I'm using the typescript SDK. My session manager is storing all the session items in cookies as the next.js libary does. Then I have some custom middleware for protected routes. My backend is serving up a react app, the cookies get sent with every request, and everything is working there. I have a /api/me endpoint that checks if the user is logged in. The react app calls that endpoint when it first loads to check if the user is logged in....

Invalid export using kinde

Im trying to deploy my app via vercel and when I run npm run build I get this error. Can someone help me out?
No description

Error '500 - Invalid URL string' with Nuxt + Cloudflare

I'm trying out Kinde in Nuxt, but when deployed, trying to log in (or sign up) returns an error 500 Invalid URL string. The thing is, this only happens when I deploy it to Cloudflare Pages (my go-to service to deploy this app). Deploying the same exact project in Vercel works just fine. It seems like something is going wrong with the environment variables in Cloudflare, although I'm setting them up just the same in Vercel....

Error: this method must be invoked in a node.js environment

I'm using Kind with NextJs, and everything was working well, but out of nowhere, I've started to get the following error: Unhandled Runtime Error Error: this method must be invoked in a node.js environment ...

Signing in Kinde Auth in Cypress Automated Testing

I'm trying to write an automated E2E Cypress test case that involves logging in to my website. In the Kinde Page that my website redirects to, the only way to sign in is via google auth. The main problem for me is that I honestly don't know how to tell Cypress to click on the "Continue with Google" button, and I would imagine I would face the same problem once I need to choose a google account to log in with. One of the alternative solutions I found is to authenticate via the Kinde Management API v1, but I don't understand how this works. ...

Logging out manually/ending session and redirect

Dear everyone, I am extending an application built in this YT-Tutorial (https://www.youtube.com/watch?v=ucX2zXAZ1I0) using NextJS 13.5.4, (AppRouter) TypeScript, trpc for requests and Kinde for Auth management. My problem is as follows: When logged in, i wanted to give a User the possibility to delete all his files and finally his account (in my Prisma DB and at Kinde)....

Getting 404 Error when trying to redirect api/auth/login

im following official for nextjs and im getting error 404 when redirected to login my project structure...
No description

CreateOrgLink Sign-in

Hello! I’m trying to crate a new sign-in process where the user can add a new organization (SaaS with multi tenancy) using the <CreateOrgLink> with NextJs. The issue is that it gives me the same sign-in that I get for a unique user (with name and email) it doesn’t add any field for the organization name. Am I missing something, should I do that sign-in on my side then send over the information to Kinde Through the API? Thank you!...

Billing query

Does Kinde's pro plan is shared among all businesses or Each business needs its own pro plan? Or it simply charges us just no of MAU and other features. I created a School Management app using NextJS that will be distributed to different school owners like this School 1 App --- Business -------...

Search for user via provided_id via API?

On a backend microservice, I would like to be able to iterate my users table and pull down latest data in order to cache the user profile details with the most recent and update my table. To do this most effectively, I would need to be able to hit /api/v1/users with the provided_id matching the UUID from my users table. How can this be done?...

Decoupling API calls with react components

I have one doubt about react sdk (and I opened an issue: https://github.com/kinde-oss/kinde-auth-react/issues/39 on the github repository). I want to get the access token for each request that goes to my API (For example in an http interceptor). I don't want send API requests in my react components. I, suppose, use redux to send http requests. How do I get the access token outside of the react component? I couldn't find a way, as react SDK exposes just the react hook to interact with Kinde.

Prompt Request Parameter: Using Kinde without SDK

From the documentation, the prompt parameter accepts a login or a registration value to determine if your user should land on the sign up or sign in page. Assigning "login" to the prompt parameter works as expected but assigning "register" to the prompt parameter throws the error in the image on the screen.
No description

Is there a way to customize the color of the login/register interface?

At the moment it's blue and my website it's black/orange so is there a way to change that blue on the button? Thank you!