auth

package
v0.0.0-...-04af757 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 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 GetApiKey

func GetApiKey(headers http.Header) (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) (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