oauth

package
v0.0.0-...-bb2a734 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserTokens map[int64]string

Functions

func GetGoogleLoginURL

func GetGoogleLoginURL() string

func GetToken

func GetToken(userID int64) (string, error)

func HandleGoogleCallback

func HandleGoogleCallback(w http.ResponseWriter, r *http.Request)

func IsLoggedIn

func IsLoggedIn(userID int64) bool

func SetToken

func SetToken(userID int64, token string)

func StartServer

func StartServer()

Types

This section is empty.

Jump to

Keyboard shortcuts

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