Bini
KKinde
•Created by Bini on 12/28/2024 in #💻┃support
Authentication Issue on Vercel Deployment
Hi Kinde team,
I'm having trouble with Kinde auth in my Vite + React + TS app when deployed to Vercel. Everything works fine on my local env, but the auth flow breaks after deploying.
Problem Summary:
- User visits
/some/protected
- ProtectedRoute component checks isAuthenticated (false)
- Redirects to /auth/login
- LoginRoute component triggers Kinde login
- User authenticates through Kinde
- onRedirectCallback is called, redirecting user back to original protected route
- ProtectedRoute still sees isAuthenticated as false and redirects to /auth/login
Expected Behavior:
After successful Kinde login, user should be redirected back to /some/protected
and recognised as authenticated, allowing access to protected routes
Environment:
* Frontend: React (Vite), TypeScript, @kinde-oss/kinde-auth-react
(v. 4.0.4)
* Deployment: Vercel
Troubleshooting Done:
* Verified environment variables on Vercel (VITE_KINDE_CLIENT_ID
, VITE_KINDE_DOMAIN
, VITE_KINDE_REDIRECT_URL
).
* Confirmed https://foobar.vercel.app/
is in Kinde's "Allowed callback URLs" and "Allowed logout redirect URLs" (without trailing slash).4 replies
KKinde
•Created by Bini on 8/29/2024 in #💻┃support
newly added team member does not have role admin
as per https://docs.kinde.com/get-started/team-and-account/add-team-members/
- i'm using Kinde Free plan
- i created the business in Kinde and have role Owner
- i've added a new team member and they've accepted the invite
- the new team member is expected to have role Admin by default but their role column in Settings > Team is blank and they don't have permissions to do anything (e.g., add new application, access Users, Organizations, Design, etc.)
is this a bug, or am i doing something wrong when adding team member?
7 replies
KKinde
•Created by Bini on 5/16/2024 in #💻┃support
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:
- added my rest api app in Kinde
- added a test user with email:password in Kinde
- redirected test user to authz endpoint and obtained authz code via web browser
- curl POST to token endpoint with authz code but returned 400 bad request (invalid grant)
curl -X POST https://<my_kinde_sudomain>.kinde.com/oauth2/token -H 'content-type: application/x-www-form-urlencoded' -d 'client_id=<my_kinde_client_id>&client_secret=<my_kinde_client_secret>&grant_type=authorization_code&redirect_uri=<my_app_redirect_url>&code=<my_callback_authorization_code>'
2 replies