utils

package
v0.0.0-...-c0aa622 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CookieExpiryMinutes = 5
View Source
const JWTExpiryMinutes = 5

Variables

This section is empty.

Functions

func AssertValidPassword

func AssertValidPassword(plainPassword string, passwordHash string) error

func GenerateJWT

func GenerateJWT(id int64) (string, error)

func GetPasswordHash

func GetPasswordHash(plainPassword string) (string, error)

func IsValidJWT

func IsValidJWT(tokenString string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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