auth

package
v0.0.0-...-32f922e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT-0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Timer *time.Timer

Functions

func BrancaKey

func BrancaKey() []byte

func DecodeToken

func DecodeToken(token string, ttlHours uint32, data any) (rawPayload []byte, e error)

func EncodeToken

func EncodeToken(payload any, ttlHours uint32) (string, int64, error)

func Init

func Init() error

func Login

func Login(username, password string) error

func Logout

func Logout() error

func Password

func Password() string

func Username

func Username() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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