token

package
v0.0.0-...-a75f228 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	AccessTokenID string    `json:"jti"`
	UserID        string    `json:"user_id"`
	ClientID      string    `json:"client_id"`
	Scopes        string    `json:"scopes"`
	IssuedAt      time.Time `json:"iat"`
	ExpiredAt     time.Time `json:"exp"`
}

func (AccessToken) GenerateJWT

func (at AccessToken) GenerateJWT() ([]byte, error)

type AuthorizationCode

type AuthorizationCode struct {
	Value     string
	ExpiredAt time.Time
}

type RefreshToken

type RefreshToken struct {
}

Jump to

Keyboard shortcuts

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