services

package
v0.0.0-...-d18f2d0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthService

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

func NewAuthService

func NewAuthService(env lib.Env) AuthService

func (AuthService) CreateTokens

func (a AuthService) CreateTokens() (*TokenDetails, error)

func (AuthService) GetAccessUuid

func (a AuthService) GetAccessUuid(tokenString string) (string, error)

func (AuthService) VerifyToken

func (a AuthService) VerifyToken(tokenString string) (*jwt.Token, error)

type TokenDetails

type TokenDetails struct {
	AccessToken  string
	RefreshToken string
	AccessUuid   string
	RefreshUuid  string
	AtExpires    int64
	RtExpires    int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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