token

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token interface {
	GenerateToken(ctx context.Context, tokenRepository token_repository.TokenRepository, privateKey *rsa.PrivateKey, claims *models.HeraClaims, expiresAt time.Duration, tokenInfo *models.Token, loginType models.LoginType) (string, *models.HeraClaims, error)
	ValidateToken(publicKey *rsa.PublicKey, jwtToken string) (*models.HeraClaims, error)
}

func New

func New(repository repository.Repository) (Token, error)

Jump to

Keyboard shortcuts

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