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

signIn/signOut broken due to SvelteKit update

leovoon opened this issue · comments

#100 A pull request is opened to fix the issue.

@leovoon is signout working against these new changes? I'm using the main branch of sk-auth and seeing HTTP 405 on POST http://localhost:3000/api/auth/signout and an accompanying error:

Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

I'll have to take a deeper look myself.

@leovoon is signout working against these new changes? I'm using the main branch of sk-auth and seeing HTTP 405 on POST http://localhost:3000/api/auth/signout and an accompanying error:

Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

I'll have to take a deeper look myself.

I have no issues with it. As the PR has been merged, I might as well close this issue. You may open one of your own.

I had aliased get and post imports from SvelteKitAuth due to changes in SvelteKit which were addressed with the merge. 🥂 thanks for that fix.