authcode

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAuthCode

func CreateAuthCode(code AuthCode) error

func GenerateSecureCode

func GenerateSecureCode() (string, error)

func MarkAuthCodeAsUsed

func MarkAuthCodeAsUsed(code string) error

Types

type AuthCode

type AuthCode struct {
	Code                string
	UserID              string
	ClientID            string
	RedirectURI         string
	Scope               string
	Nonce               string
	CodeChallenge       string
	CodeChallengeMethod string
	ExpiresAt           time.Time
	Used                bool
	CreatedAt           time.Time
}

func AuthCodeByCode

func AuthCodeByCode(code string) (*AuthCode, error)

Jump to

Keyboard shortcuts

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