utils

package
v0.0.0-...-fc131ae Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAccessToken

func GenAccessToken(user *model.User, secret string, expiry int) (accessToken string, err error)

func GenRefreshToken

func GenRefreshToken(user *model.User, secret string, expiry int) (refreshToken string, err error)

func GetIDFromToken

func GetIDFromToken(requestToken string, secret string) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

func IsAuthorized

func IsAuthorized(requestToken string, secret string) (bool, error)

func VerifyPassword

func VerifyPassword(password string, confirmpass 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