auth

package
v0.0.0-...-09065da Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadToken

func LoadToken(db *gorm.DB) (*oauth2.Token, error)

func RefreshToken

func RefreshToken(token *oauth2.Token, conf *oauth2.Config, cn *gorm.DB) *oauth2.TokenSource

Refreshes token and compares to previous value. Saves to disk if it has changed

func SaveToken

func SaveToken(token *oauth2.Token, db *gorm.DB) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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