Yoshify
Yoshify
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Fantastic! So glad to hear. You’re most welcome 👏
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Glad I can be of assistance, looking forward to seeing how you go 🙂
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
CC @CB_Kinde
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Side note - there's ways we can improve the SDK to make routes where it's used force NextJS to render the route as dynamic, but we're taking our time to be careful of where we do this as some of this could result in breaking changes.
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
This would also explain why it works in dev and not in prod - in dev, there's no pre-rendering of static routes.
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
For experimentation's sake - if you add export const dynamic = 'force-dynamic' at the top of the page within the dashboard page.tsx, set the env var to redirect post-login back to /api/auth/creation, and rebuild - does it work now?
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
No worries @Evan - looking at the build logs /dashboard is being pre-rendered as a static page at build time. This means await requireUser(); in your dashboard page.tsx is probably always going to redirect because at build time, there is no signed in user. This causes the following redirect loop: - User logs in and is redirected to /api/auth/creation - /api/auth/creation redirects to /dashboard - /dashboard checks if the current user exists (which has been pre-rendered, so it is always falsy) - so redirects back to /api/auth/login - Repeat ad infinitum
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
I wonder if the dashboard page is being statically generated meaning (regardless of state or auth cookies) the user is always evaluated to null, causing a redirect.
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Hrm, I wonder. Could you show me your Vercel build logs?
120 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Hi Evan, just to confirm - after changing your env variables in the Vercel dashboard, did you perform a rebuild? You must ensure you rebuild and tick ignore build cache otherwise you'll end up with stale env vars.
120 replies
KKinde
Created by bcsproductions on 1/22/2025 in #💻┃support
Nextjs 15 .1.4 - cookies() should be awaited before using its value
No worries mate!
8 replies
KKinde
Created by bcsproductions on 1/22/2025 in #💻┃support
Nextjs 15 .1.4 - cookies() should be awaited before using its value
Please update to the latest version of the NextJS SDK (2.4.6) as it has support for Next 15 🙂
8 replies
KKinde
Created by bcsproductions on 1/22/2025 in #💻┃support
Nextjs 15 .1.4 - cookies() should be awaited before using its value
Hi @bcsproductions , what version of the NextJS SDK are you using?
8 replies
KKinde
Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
You need to use the client login url function as it generates a URL using your environment information (which includes your callback URL) - you can still provide additional parameters to it like login_hint and org_code
28 replies
KKinde
Created by saundersMcLane on 1/7/2025 in #💻┃support
Callback URL invalid
Hi @saundersMcLane, is there a reason you’re creating a URL and redirecting the way you are as opposed to using kinde_client.get_login_url()?
28 replies
KKinde
Created by Furkan Özay on 1/10/2025 in #💻┃support
Typeform - Kinde integration
Hey Furkan! If I'm understanding your workflow correctly, these are the steps we should take to achieve this. - User submits pre-screening form - Create a user in the DB with form information - Create a user in Kinde via the Management API. See here The cool thing about this flow is that Kinde allows you to provide a provided_id field via the API which you can set as your local DB user ID. This way you can associate the user objects to one another. An alternative to this flow (where registration comes first) could be: - User registers via Kinde - Kinde webhook syncs information to the local DB - Onboarding form is filled and updated in local DB.
6 replies
KKinde
Created by Lump on 1/8/2025 in #💻┃support
Error: State not found
Hi @Lump I've done some testing with my account on your website and there appears to be an infinite redirect loop causing this error. The initial response from Kinde correctly has the state cookie but because of the infinite redirect, it never has an opportunity to be saved to storage. After login/registration, the redirect loop appears to occur at /api/auth/creation which redirects to /dashboard which redirects to /api/auth/login then repeats continuously until ERR_TOO_MANY_REDIRECTS is thrown. I believe resolving this redirect loop should fix your state error.
8 replies
KKinde
Created by DanielPuleio on 1/8/2025 in #💻┃support
Kinde creates 2 identities when I try to signup an existing email using Google social connection
Hi @DanielPuleio - I've just attempted to reproduce this with both Microsoft and Google connections but have been unable to do so, Kinde successfully detects and merges the identities. Do the users definitely share the same email address? If so do you have exact steps for reproduction?
6 replies
KKinde
Created by Lump on 1/8/2025 in #💻┃support
Error: State not found
May I attempt to create an account on your webpage to attempt to debug the State cookie?
8 replies
KKinde
Created by Lump on 1/8/2025 in #💻┃support
Error: State not found
Hi @Lump - Do you have Vercel Deployment Protection enabled by any chance? This can intercept the Kinde callback and cause the State cookie to not be set.
8 replies