token

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Issuer = "Nuntio-Hera"
)

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 *go_nuntio.CustomClaims, expiresAt time.Duration, tokenInfo *go_nuntio.Token, loginType go_nuntio.LoginType) (string, *go_nuntio.CustomClaims, error)
	ValidateToken(publicKey *rsa.PublicKey, jwtToken string) (*go_nuntio.CustomClaims, 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