Implement OAuth into your application
/oauth/[provider]/validate
.
src
directory of your project, create a hooks.server.ts
file and paste the following code:
.env
file at the root level of your project and define your client ID and secret as variables. Example:+page.svelte
file that has your login page:
/oauth/[provider-name-here]/auth