Repository navigation
@auth/sveltekit does not work with SvelteKit 3 #13503
Replies: 1 comment 1 reply
|
Until there's a release with SvelteKit 3 support, you can patch With pnpm: pnpm patch @auth/sveltekit@1.11.3
# edit the files below in the folder it prints, then:
pnpm patch-commit <that folder>1. import { base } from "$app/paths";with const base = "";SvelteKit 3 no longer exports 2. External redirects (runtime error redirect(302, signInURL.toString(), { external: true });
redirect(302, url, { external: true });
redirect(302, res.redirect, { external: true });Before this change the sign-in action failed with
My test was a production build ( |
Uh oh!
There was an error while loading. Please reload this page.
See #13502
All reactions