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
Click to show internal directories.
Click to hide internal directories.