googleauth

command
v0.4.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

An example using google auth with offline token access.

This example demonstrates how to:

  • Configure Google OAuth for offline access (refresh tokens)
  • Request additional scopes (e.g., Gmail API)
  • Handle and store OAuth tokens for later API access

Edit config.yaml or set AUTH_GOOGLE_ID and AUTH_GOOGLE_SECRET in your environment.

$ go run examples/googleauth/googleauth.go

Jump to

Keyboard shortcuts

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