auth

package
v0.0.0-...-51ef577 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTokenInvalid is when given token is not valid.
	ErrTokenInvalid = apperror.NewUnauthorized("token is not valid")
)

Functions

This section is empty.

Types

type Token

type Token interface {
	Sign(claims jwt.Claims) (string, *apperror.AppError)
	Verify(token string, claims jwt.Claims) *apperror.AppError
}

Jump to

Keyboard shortcuts

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