-
When registering your application for OAuth set your callback url to match this format
/oauth/[provider]/validate. -
In the
srcdirectory of your project, create ahooks.server.tsfile and paste the following code:
- Create an
.envfile at the root level of your project and define your client ID and secret as variables. Example:
-
In your
+page.sveltefile that has your login page:- Create a button or component for each provider you want to use, that will route to an endpoint of
/oauth/[provider-name-here]/auth - Make sure to include an anchor tag within the button and/or component.
- Create a button or component for each provider you want to use, that will route to an endpoint of
OAuth providers are not set up to store any data in a database in this current iteration of Svault.
