tokens

package
v0.0.0-...-16f116b Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 5 Imported by: 0

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 NewAdminFileToken

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

NewAdminFileToken generates and returns a new admin private file access 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

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

NewRecordAuthToken generates and returns a new auth record authentication token.

func NewRecordChangeEmailToken

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 NewRecordFileToken

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

NewRecordFileToken generates and returns a new record private file access token.

func NewRecordResetPasswordToken

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

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

func NewRecordVerifyToken

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