Dan6erbond / sk-auth

Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`request.path` has been replaced by `request.url.pathname`

krg-digital opened this issue · comments

commented

I'm getting this error when calling the signIn() function using the latest version of SvelteKit.

@krg-digital looks like the author is not very active, have you found a workaround yet?

commented

Same, related to https://stackoverflow.com/questions/70534899/sveltekit-error-request-query-has-been-replaced-by-request-url-searchparams

Yeah, stumbled upon that thread when investigating the error. I'm definitely no expert when it comes to the inner-workings of SvelteKit, but I'd guess these lines of code is where the issues lies... and that TODO might hint at what needs to be done?

No workaround yet, however. :(

EDIT: Based on this answer in the Stackoverflow thread, maybe those lines just need to be deleted? 🤷

EDIT*2: I see that this pull request may solve the issue. :)

Hey everyone! Sorry for the inactivity, SK-Auth has now been upgraded to v0.4.0 thanks to #58 by @lulzneko which should resolve these issues.