Dan6erbond / sk-auth

Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!
MIT License
578 stars 70 forks source link

SvelteKit trailingSlash configuration entry is not respected #49

Open Mikk36 opened 2 years ago

Mikk36 commented 2 years ago

sk-auth assumes the setting to be either never or ignore and it doesn't work well with always (/api/auth/signout does not work at all).

https://kit.svelte.dev/docs#configuration-trailingslash

kdheepak commented 2 years ago

I'm having the same issue with trailingSlash: 'always'. Is there a workaround for this? SvelteKit doesn't provide a per page configuration, so I'm stuck between breaking some existing URLs for users by not using trailingSlash: 'always' and not using this.