Kinde

K

Kinde

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

Join

GetUser() returning Null on Live Nextjs.

Hi all i am hoping anyone could help me with this query. I have a Nextjs14 application using Kinde Auth. It was working fine, but I woke up to a random bug on live. getUser is reutuning null only on live. ` const { getUser } = getKindeServerSession()...

No Github username

When used github auth for next js app, it only provided email and name and not github username. Actually I was planning to create an app around github prs so it would be helpful

[Help] 500 With token exchange!

We're building a web application using FastAPI for the backend and React for the frontend. We're trying to integrate Kinde for authentication. What's the best approach to implement this integration considering our tech stack? We're facing issues with the token exchange process. After receiving the authorization code, we're getting a 500 Internal Server Error when trying to exchange it for tokens. Post-authentication, we need to fetch user details and store them in our local PostgreSQL database. What's the recommended way to retrieve user information from Kinde after successful authentication? Are there any specific considerations or best practices we should follow when using Kinde with FastAPI, especially regarding the handling of access tokens and user sessions? Can you provide a sample implementation or code snippet for the authentication flow, particularly the token exchange and user info retrieval parts, that works well with FastAPI?...

Problem not sending state to the oauth2 /auth endpoint

Hi, I am not sending the state url parameter to the oauth2 /auth endpoint, as the docs says its not required (https://docs.kinde.com/developer-tools/about/using-kinde-without-an-sdk/#state) but the endpoint fails says it is required. Do I have to send state?

Client Credentials with Python SDK

When using OAuth Client Credentials flow, does the Python SDK provide a function to verify and decode the bearer authorization header?

LogoutLink is not redirecting to my desire URL

I tried to follow the instruction to set up my post logout route. However, it still redirect me to a default route instead of my home page. Does anyone have the same issue ? Or did I miss anything? Thank you...
No description

Need some help with my custom domain for production.

Been trying to setup a custom domain: * I have a website setup with DNS to azure under a subdomain sub.domain.com.au * I can't setup kinde to also point to sub.domain.com.au so its pointing to account.domain.com.au * I have setup my google OAuth with the callback url to account.domain.com.au. * This is an SPA so every time I login and refresh a page is goes back to my login....

Deploy a React Kinde app on Vercel

I attempted to deploy the React Kind app to Vercel, but after logging in, it showed
ProtectedRoute: {isLoading: false, isAuthenticated: false}
ProtectedRoute: {isLoading: false, isAuthenticated: false}
...

Middleware based protection not working

in my middleware.ts, i have the following code ```ts import { withAuth } from "@kinde-oss/kinde-auth-nextjs/middleware" export default withAuth(...

Are there guidelines for integrating Kind Auth with a React.js-based Figma plugin?

everyone, Does anyone have guidelines for integrating Kind Auth with a React.js-based Figma plugin? Any help would be greatly appreciated! 😊
No description

Nuxt with Prisma ORM and Kinde Auth

Hello, I'm trying to find an equivalent of the following code for Nuxt.js to connect a user signing in with Kinde to a Prisma powered database before initial page load. ``` import {PrismaClient} from "@prisma/client"; import {getKindeServerSession} from "@kinde-oss/kinde-auth-nextjs/server";...

Session cookie does not persist after reload in React SDK

main.js: ``` <KindeProvider clientId={import.meta.env.VITE_KINDE_CLIENT_ID} domain={import.meta.env.VITE_KINDE_DOMAIN}...

Create a user with username and password authentication using the API

Hello I'm trying to create a user using the following documentation: https://kinde.com/api/docs/#create-user The only options I have there is to create a user with email, phone or username. What do I need to do to be able to create a user with username and password? ...

How can I get the users JWT token after logging when using the Nuxt module?

Hey, i'm using the Nuxt module and I am trying to get the JWT token after login so I can pass it through to my Cloudflare Workers API in the Authorization header. Is this possible? I can't find anything in the Nuxt Module documentation that says how to access the token.

React SDK Sample CORS Error

Hi new to Kinde and just trying out the react sample at https://github.com/kinde-starter-kits/react-starter-kit I have updated the client id and domain to my application setup as React and has the call back urls set to http://localhost:3000. I can register a user and after login I get a CORS error. Am I missing something?
No description

Customizing or redirecting from the "Account not found" page

Is there any way I can redirect to a different page than the default Kinde "Account not found" page, if a user tries to log in and their account does not exist? I can't seem to find relevant info in the docs, but maybe I missed it?
No description

phone sign in, custom has changed

Something has changed, my custom phone log in routine is suddenly not working anymore. This is the result (image) before the user was shown the input token page I am triggering the page like this:...
No description

Invalid Credentials for kinde/management-api-js

I have added the management-api-js package to my project and I don't know why but I have that error: ``` ⨯ node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs (1:25093) @ xt ⨯ Internal error: ApiError: Invalid credentials. at xt (./node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1849:18)...
No description

[Critical] kinde-auth-pkce-js

Unable to refresh token due to incorrect declaration in request. Please, check pull request: https://github.com/kinde-oss/kinde-auth-pkce-js/pull/73...

React Native Session Provider

Is there an example anywhere showing how to create a session provider with the Kinde React Native SDK in an expo app? Here is the Expo docs on how they encourage to use React Context and Route Groups https://docs.expo.dev/router/reference/authentication/ ...