core

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDClaimName  = "id"
	ExpClaimName = "exp"
)

Variables

View Source
var (
	ErrCallBackAlreadyProcessed = errors.New("callback already processed")
	ErrNotVerified              = errors.New("not verified")
	ErrVerifyRequestNotFound    = errors.New("verify request not found")
)

Functions

This section is empty.

Types

type AccessLevel

type AccessLevel string

type BasicJWTClaims

type BasicJWTClaims struct {
	ID  uuid.UUID `structs:"id"`
	Exp int64     `structs:"exp"`
}

type VerifyProxy

type VerifyProxy interface {
	NewVerificationRequest() (*uuid.UUID, string, error)
	VerifyCallback(*requests.VerificationCallbackRequest) error
	GetJWZToken(uuid.UUID) (string, error)
}

func NewVerifyProxy

func NewVerifyProxy(cfg config.Config) VerifyProxy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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