method

App.LoginWithOptions

Authenticate and record safe client metadata on the resulting session.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
emailstringThe email value.
passwordstringThe password value.
optionsLoginOptionsThe options value.

Returns

The declared result.

(AuthSession, error)

How it works

Credential failures intentionally share one public response.

Full signature

func (application *App) LoginWithOptions( ctx context.Context, collection, email, password string, options LoginOptions, ) (AuthSession, error)

Source core/auth.go:251

Related types

  • App

    A resolved application bound to operation services.

  • LoginOptions

    Request metadata and cookie-independent controls for local login.

  • AuthSession

    A newly authenticated session and its one-time raw token.