oauth

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ToGO

togo-framework/auth-oauth

marketplace pkg.go.dev MIT

Part of the togo framework.

Install

togo install togo-framework/auth-oauth

ToGO

auth-oauth

part of the togo-framework — the full-stack Go + React framework

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.


💎 Premium sponsors

togo is proudly sponsored by ID8 Media and One Studio.

ID8 Media        One Studio


Premium sponsors

ID8 Media  ·  One Studio

Support togo — become a sponsor.

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
⌂ 换网址