auth

package
v0.0.0-...-551f129 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotJWT = errors.New("auth: not a jwt token")

ErrNotJWT is returned by AccountFromToken when the provided token is not a JWT. In such a case, the caller should use another method to inspect the token.

Functions

func AccountFromToken

func AccountFromToken(token string) (*microauth.Account, error)

AccountFromToken restore account from the access JWT token

func AccountToToken

func AccountToToken(acc *microauth.Account) string

AccountToToken converts account to JWT token

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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