method

App.Login

Authenticate one collection identity with a password.

Arguments

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

Returns

The declared result.

(AuthSession, error)

How it works

Use LoginWithOptions to persist safe device metadata. Lockout, email verification, timing defenses, and optional hash upgrades are enforced.

Full signature

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

Source core/auth.go:245

Related types

  • App

    A resolved application bound to operation services.

  • AuthSession

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