Peteswah
Peteswah
KKinde
Created by Chris Laupama on 1/17/2025 in #💻┃support
Kinde + supabase
There are 2 main ways I have done it: 1. set the login redirect url to something like /api/auth-success which handles adding a new user to supabase with the kinde id and then redirects to your app accordingly. You will have to do a DB call to check if the user already exists 2. set up a webhook to listen to user created events, and then insert into your supabase db with the user id
4 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
ahh! looks like its's private
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
I dont think the layouts in customer and store should be an issue
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Ah man i wonder what is going on, I think sharing the repo might be the best here
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
also are you using middleware?
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
that might help us debug
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Would you be able to add some console logs? - dashboard layout console.log(user) before if(!user) - dashboard layout console.log("layout redirect") before redirect("/") - set-up console,.log("setup redirect") before redirect("/')
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
I think the issue must lie in /dashboard or /set-up, unfortunately i can't work it out by just looking at the code
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
seems like the auth is working because the cookies are being set to the correct domain,
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
it would be strange if
if (!user) {
return redirect("/");
}
if (!user) {
return redirect("/");
}
was firing, because the user is being loaded as a part of the avatar in the nav, can get the first letter of their name and the email
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
I see, are you able to check your DB to see if the prod users are being set up?
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Do you think its the Layout page thats causing the redirect back to /
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
yep that looks good to me, I have the same
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Yep that's fair I noticed that
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
are you experiencing this issue on preview domains?
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
I just tried loggin in just now and it was working
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Of course! Would you be able to send a screenshot of your cookies
95 replies
KKinde
Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Hey @M would you be able to share the route protection code for dashboard and the cookies under the application tab 🙂
95 replies
KKinde
Created by agr on 10/28/2024 in #💻┃support
getIdToken error
Thanks for raising this, I'll see if I can recreate it - this seems like a bug
24 replies
KKinde
Created by Rasel Hossain on 10/22/2024 in #💻┃support
I redirect to the login page after my access token expires.
Hey @Rasel Hossain , I thought the KindeProvider might be the solution to your problem, but it looks like a refresh is necessary to get the refreshToken to work properly. This is an issue we're looking to address asap - then hopefully we can get the token refreshing in the background
22 replies