authcode

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 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
	RedirectURI string
	Scope       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