services

package
v0.0.0-...-c7ab4d1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailVerification

func EmailVerification(emailValues utils.EmailVerification) string

func GeneralTokens

func GeneralTokens(uuid string, subject string, timeMultiplier time.Duration) string

func GenerateAccessClaims

func GenerateAccessClaims(uuid string) (*models.Claims, string, int64)

func GenerateRefreshClaims

func GenerateRefreshClaims(cl *models.Claims) (string, int64)

GenerateRefreshClaims returns refresh_token

func GenerateToken

func GenerateToken(uuid string, subjectType string, timeExp int64) string

generate token

func GenerateTokens

func GenerateTokens(uuid string) (string, string, int64, int64)

GenerateTokens returns the access and refresh tokens

func GetAuthCookies

func GetAuthCookies(accessToken, refreshToken string) (*fiber.Cookie, *fiber.Cookie)

GetAuthCookies sends two cookies of type access_token and refresh_token

func ResetPassword

func ResetPassword(resetValues utils.EmailVerification) string

func SaveToken

func SaveToken(uuid string, subjectType string, timeExp int64, token string) bool

func ValidateToken

func ValidateToken(accessToken string) string

For internal verification

Types

This section is empty.

Jump to

Keyboard shortcuts

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