Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating authGuard breaks SSR login functionality #84

Open
lcorneliussen opened this issue Nov 21, 2024 · 0 comments
Open

Activating authGuard breaks SSR login functionality #84

lcorneliussen opened this issue Nov 21, 2024 · 0 comments

Comments

@lcorneliussen
Copy link

When uncommenting the authGuard it correctly protects the /app route, but the login stops working.

https://github.com/cowboycodr/kiankit/blob/main/src/hooks.server.ts#L65

The login will redirect to:

http://SUPABASE/auth/v1/verify?token=pkce_....&type=magiclink&redirect_to=http://localhost:5173/app

SUPABASE will then issue a redirect to:

http://MYAPP/app?code=xyz

But i it seems like /app is now too protected to handle the session activation and redirects back to login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant