auth

package
v0.0.0-...-bb864ba Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) error

func GetBearerToken

func GetBearerToken(headers http.Header) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

func MakeJWT

func MakeJWT(userId uuid.UUID, tokenSecret string, expiresIn time.Duration) (string, error)

func MakeRefreshToken

func MakeRefreshToken() (string, error)

func ValidateJWT

func ValidateJWT(tokenString, tokenSecret string) (uuid.UUID, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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