auth

package
v0.0.0-...-4440d16 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(hashedPassword, password string) error

func EncryptPassword

func EncryptPassword(password string) (string, error)

func GetUserIdFromToken

func GetUserIdFromToken(tokenString string) (string, error)

func NewToken

func NewToken(userId string) (string, error)

func ParseToken

func ParseToken(tokenString string) (*jwt.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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