token

package
v0.1.7-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenIssuer

type TokenIssuer struct {
	Iss                  string
	AccessTokenLifetime  time.Duration
	RefreshTokenLifetime time.Duration
}

func (TokenIssuer) IssueTokens

func (t TokenIssuer) IssueTokens(username string, privateKey *rsa.PrivateKey) (*Tokens, error)

type Tokens

type Tokens struct {
	AccessToken  string `json:"access"`
	RefreshToken string `json:"refresh"`
}

Jump to

Keyboard shortcuts

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