utils

package
v0.0.0-...-2e7418b Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func GenerateTokens

func GenerateTokens(userId primitive.ObjectID, accessExpires int64, refreshExpires int64) (string, string, error)

func HashPassword

func HashPassword(password string) (string, error)

func VerifyToken

func VerifyToken(tokenString string, secretKey string) (jwt.MapClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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