Documentation
Authentication

OAuth

Spiralsaas has google authentication integration by default. Appwrite cloud supports 30+ providers so you don't have to store secret keys in your project environment variables.

Google Authentication

The backend logic for google authentication is in two places one is inside the src/app/api/auth/oauth folder and in the src/lib/oauth.ts file. We could store all the logic in the api folder but it will give us cors error.

Using Google Authentication in the frontend

await oauthProvider("google");

On this page