tokens

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 5 Imported by: 66

Documentation

Overview

Package tokens implements various user and admin tokens generation methods.

Index

Constants

View Source
const (
	TypeAdmin      = "admin"
	TypeAuthRecord = "authRecord"
)

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 NewRecordAuthToken added in v0.8.0

func NewRecordAuthToken(app core.App, record *models.Record) (string, error)

NewRecordAuthToken generates and returns a new auth record authentication token.

func NewRecordChangeEmailToken added in v0.8.0

func NewRecordChangeEmailToken(app core.App, record *models.Record, newEmail string) (string, error)

NewRecordChangeEmailToken generates and returns a new auth record change email request token.

func NewRecordResetPasswordToken added in v0.8.0

func NewRecordResetPasswordToken(app core.App, record *models.Record) (string, error)

NewRecordResetPasswordToken generates and returns a new auth record password reset request token.

func NewRecordVerifyToken added in v0.8.0

func NewRecordVerifyToken(app core.App, record *models.Record) (string, error)

NewRecordVerifyToken generates and returns a new record 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