tokens

package
v0.0.0-...-89d1b08 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package tokens implements various user and admin tokens generation methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdminAuthToken

func NewAdminAuthToken(app core.App, admin *models.Admin) (string, error)

NewAdminAuthToken generates and returns a new admin authentication token.

func NewAdminResetPasswordToken

func NewAdminResetPasswordToken(app core.App, admin *models.Admin) (string, error)

NewAdminResetPasswordToken generates and returns a new admin password reset request token.

func NewUserAuthToken

func NewUserAuthToken(app core.App, user *models.User) (string, error)

NewUserAuthToken generates and returns a new user authentication token.

func NewUserChangeEmailToken

func NewUserChangeEmailToken(app core.App, user *models.User, newEmail string) (string, error)

NewUserChangeEmailToken generates and returns a new user change email request token.

func NewUserResetPasswordToken

func NewUserResetPasswordToken(app core.App, user *models.User) (string, error)

NewUserResetPasswordToken generates and returns a new user password reset request token.

func NewUserVerifyToken

func NewUserVerifyToken(app core.App, user *models.User) (string, error)

NewUserVerifyToken generates and returns a new user verification token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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