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

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

Closed krg-digital closed 2 years ago

krg-digital commented 2 years ago

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

Kelvijn commented 2 years ago

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

Kelvijn commented 2 years ago

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

krg-digital commented 2 years ago

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? :shrug:

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

Dan6erbond commented 2 years ago

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.