utils

package
v0.0.0-...-cea713b Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(hash, password []byte) bool

func Crypt

func Crypt(password string) (hash []byte, err error)

func GenerateAccessTokenOnly

func GenerateAccessTokenOnly(user api.User) (string, error)

func GenerateTokenPair

func GenerateTokenPair(user api.User) ([2]string, error)

func IfThenElse

func IfThenElse[T any](condition bool, ifTrue T, ifFalse T) T

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