user_validation

package
v0.0.0-...-76732a0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTokens

func GenerateTokens(email, id string) (string, string, error)

func GetExpirationTime

func GetExpirationTime(token string) (int64, error)

func HashPassword

func HashPassword(password string) (string, error)

func UpdateTokens

func UpdateTokens(user *domain.User, signedToken, signedRefreshToken string)

func VerifyPassword

func VerifyPassword(hashed, given string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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