Google#
Lets people sign in with their Google account, including Google Workspace accounts. Last checked against Google's documentation on 30 October 2026.
Set it up#
Run
leptoskit auth provider add google. It adds this toleptoskit.tomland prints the steps below with your addresses filled in:[auth.providers.google] client_id_env = "GOOGLE_CLIENT_ID" client_secret_env = "GOOGLE_CLIENT_SECRET"In the Google Cloud console, create an OAuth client ID of type "Web application".
Add your redirect URIs:
https://myapp.com/auth/callback/google(your[auth] originfollowed by/auth/callback/google), and for developmenthttp://localhost:3000/auth/callback/google.Set
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETin your server's environment.Turn on the
auth-providersfeature on your server'sleptoskitdependency, and runleptoskit auth doctor.
What sign-in gets#
Google's OpenID Connect ID token: a stable ID for the person, their name and picture, and their email address with Google's email_verified flag. A verified address is stored as the account's; it never signs in to another account that has the same address. leptoskit asks for the openid, email, and profile scopes; set scopes in the table to change them.
Platforms#
It works on the web, and in iOS, macOS, and Android apps through the system browser, with the same redirect URIs: the browser comes back to your site, which sends it on to the app. See Sign-in for each platform.