method

App.RequestPasswordReset

Issue and send a single-use reset token when configured.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
identitystringThe identity value.

Returns

The declared result.

error

How it works

Returns a non-enumerating success shape whether or not the identity exists. Raw tokens are delivered only to the trusted Config callback.

Full signature

func (application *App) RequestPasswordReset( ctx context.Context, collection, identity string, ) error

Source core/auth.go:771

Related types

  • App

    A resolved application bound to operation services.