Yoshify
Yoshify
KKinde
Created by Noel on 1/31/2025 in #💻┃support
Middleware not protecting routes in version 2.5.0-11
Feel free to reach out privately if you’d prefer (we also have a confidential support channel)
14 replies
KKinde
Created by Noel on 1/31/2025 in #💻┃support
Middleware not protecting routes in version 2.5.0-11
If you could share a HAR file from your dev tool capture that would help a lot in debugging too! 🙂
14 replies
KKinde
Created by Noel on 1/31/2025 in #💻┃support
Middleware not protecting routes in version 2.5.0-11
Hi @Noel - just to clarify, is the issue that /api/auth/success isn’t being hit? Or is a redirection occurring when you attempt to push to the login page?
14 replies
KKinde
Created by Noel on 1/31/2025 in #💻┃support
Middleware not protecting routes in version 2.5.0-11
Hi @Noel ! Could you please update to and try version 2.5.0-13? Your issue should be resolved.
14 replies
KKinde
Created by Tachyon on 2/2/2025 in #💻┃support
Private Relay Apple ID
This is a feature built into Apple devices and is available anywhere Sign in with Apple is available. Disabling it is dependent on the user device. The user will always have the same relay for your app, so when they sign back in (with Apple) it’ll use the same previously generated relay. Relays forward all email to the original email address attached to the Apple ID, so it still functions the same as an email.
3 replies
KKinde
Created by Noel on 1/31/2025 in #💻┃support
Middleware not protecting routes in version 2.5.0-11
@Noel thanks for your assistance, was able to replicate and identify the cause. We should another version out for testing soon - I'll update you when this happens.
14 replies
KKinde
Created by Noel on 1/31/2025 in #💻┃support
Middleware not protecting routes in version 2.5.0-11
Thanks mate. Will attempt to replicate.
14 replies
KKinde
Created by Noel on 1/31/2025 in #💻┃support
Middleware not protecting routes in version 2.5.0-11
What does your middleware look like?
14 replies
KKinde
Created by Noel on 1/31/2025 in #💻┃support
Middleware not protecting routes in version 2.5.0-11
Hi @Noel ! I haven’t been able to replicate this in testing - could I confirm that you definitely don’t have a refresh token cookie in your cookies at all? If you try to visit a protected page in the new version you won’t be redirected to login if a refresh and revalidation succeeds.
14 replies
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