You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to SvelteKit 5 (svelte@^5.0.0, @sveltejs/kit@next) and using @auth/sveltekit@^1.8.0, the Auth.js handler fails to register its internal routes.
Calling signIn('google') results in:
SvelteKitError: Not found: /signin/google
❗️The same code works in SvelteKit 4 with @auth/[email protected]
signIn('google') should redirect to /api/auth/signin/google and initiate OAuth flow.
The text was updated successfully, but these errors were encountered:
mikeh2
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Mar 30, 2025
Same here. Interestingly enough, I'm still on Svelte 4 and didn't ever upgrade my dependencies (as far as I can recall)... will have to look into when the bug started appearing for me
Yeah. For now, we can replace the buttons with links to /auth/signin and /auth/signout, but they will take the user to signin/signout pages instead of immediately updating the auth.
Environment
Reproduction URL
https://github.com/rahulserver/gAuthDemoAppSveltekit
Describe the issue
After upgrading to SvelteKit 5 (svelte@^5.0.0, @sveltejs/kit@next) and using @auth/sveltekit@^1.8.0, the Auth.js handler fails to register its internal routes.
Calling signIn('google') results in:
SvelteKitError: Not found: /signin/google
❗️The same code works in SvelteKit 4 with @auth/[email protected]
How to reproduce
https://github.com/rahulserver/gAuthDemoAppSveltekit
(SvelteKit 4 + Auth.js 0.3.x — working)
upgrade:
package.json:
Expected behavior
signIn('google') should redirect to /api/auth/signin/google and initiate OAuth flow.
The text was updated successfully, but these errors were encountered: