Documentation ¶
Index ¶
Constants ¶
View Source
const ( EmailConfirmationUse = "email_confirmation" PasswordResetUse = "password" )
Variables ¶
View Source
var ErrDuplicateOneTimeToken = errors.New("duplicate one time token")
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { NewForEmailConfirmation(ctx context.Context, userId sharedTypes.UUID, email sharedTypes.Email) (OneTimeToken, error) NewForPasswordReset(ctx context.Context, userId sharedTypes.UUID, email sharedTypes.Email) (OneTimeToken, error) ResolveAndExpireEmailConfirmationToken(ctx context.Context, token OneTimeToken) error }
type OneTimeToken ¶
type OneTimeToken string
func GenerateNewToken ¶
func GenerateNewToken() (OneTimeToken, error)
func (OneTimeToken) Validate ¶
func (t OneTimeToken) Validate() error
Click to show internal directories.
Click to hide internal directories.