oauth

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRequestUri

func DecodeRequestUri(reqUri string) (string, error)

func EncodeRequestUri

func EncodeRequestUri(reqId string) string

func GenerateCode

func GenerateCode() string

func GenerateRefreshToken

func GenerateRefreshToken() string

func GenerateRequestId

func GenerateRequestId() string

func GenerateTokenId

func GenerateTokenId() string

Types

type SessionAgeResult

type SessionAgeResult struct {
	SessionAge     time.Duration
	RefreshAge     time.Duration
	SessionExpired bool
	RefreshExpired bool
}

func GetSessionAgeFromToken

func GetSessionAgeFromToken(t provider.OauthToken) SessionAgeResult

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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