oauth

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 14 Imported by: 0

README

auth-oauth

OAuth2 social login for togo auth: Google, GitHub, Facebook. Depends on auth (plugin-depends-on-plugin).

togo install togo-framework/auth
togo install togo-framework/auth-oauth

Env: APP_URL, and per provider OAUTH_GOOGLE_CLIENT_ID/_SECRET, OAUTH_GITHUB_CLIENT_ID/_SECRET, OAUTH_FACEBOOK_CLIENT_ID/_SECRET. Flow: GET /api/auth/oauth/{provider} -> callback -> session.

Documentation

Overview

Package oauth adds OAuth2 social login (Google, GitHub, Facebook) to togo auth. It registers /api/auth/oauth/{provider} + callback routes; on success it find-or-creates the user via auth and issues a togo session. Depends on the auth plugin. Install: `togo install togo-framework/auth-oauth`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL