auth

package
v0.0.0-...-f679f10 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	GetChallenge(publicKey []byte) (*Challenge, error)
	VerifyChallenge(deciphered string, pubKey []byte) (bool, error)
}

func New

func New(signer signer.Signer, store store.Store, JWT jwt.JWT, userService user.Service) Auth

type Challenge

type Challenge struct {
	Key     string
	Message string
	Nonce   string
}

type StoredChallenge

type StoredChallenge struct {
	Ciphered string `json:"ciphered"`
	Nonce    string `json:"nonce"`
}

Jump to

Keyboard shortcuts

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