services

package
v0.0.0-...-5c97e34 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAccessTokenExpired = errors.New("access_token expired")

Functions

This section is empty.

Types

type TokenService

type TokenService struct {
	// contains filtered or unexported fields
}

func NewTokenService

func NewTokenService() *TokenService

func (*TokenService) Get

func (*TokenService) Parse

func (t *TokenService) Parse(accessToken string) (jwt.Token, error)

func (*TokenService) Revoke

func (t *TokenService) Revoke(ctx context.Context, tokens *oauth2.Token) []error

type Tokens

type Tokens struct {
	AccessTokenJWT jwt.Token
	AccessToken    string
	RefreshToken   string
}

Jump to

Keyboard shortcuts

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