email_auth_token_dto

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	EmailAuthToken string `json:"email_auth_token"`
	Email          string `json:"email"`
	DateCreated    string `json:"date_created"`
	Expires        int64  `json:"expires"`
	DateRevoked    string `json:"date_revoked,omitempty"`
}

func GetNewEmailAuthTokenByEmail

func GetNewEmailAuthTokenByEmail(email string) *AuthToken

func (*AuthToken) Generate

func (eat *AuthToken) Generate()

func (*AuthToken) IsExpired

func (eat *AuthToken) IsExpired() bool

Jump to

Keyboard shortcuts

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