Replies: 2 comments 1 reply
-
Anyone knows how it's done? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can pass options in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am completely new to Svelte and Sveltekit. So far I am in love with it! But I am confused about how authentication and authorization would work with an existing external REST api. The rest api handles authentication and sets a session cookie. The API and the Svelte app are on the same domain.
As far as I know,
fetch
forwards cookies inside load on the server, so API requests should work. So is it a matter of simply checking the REST api response and if it's unauthorized, I also handle it in the Svelte route? Is that the big picture?Beta Was this translation helpful? Give feedback.
All reactions