method

App.Login

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

Authenticate one collection identity with a password.

Source core/auth.go:260

@param ctx
The ctx value.
@param collection
The collection value.
@param email
The email value.
@param password
The password value.
@returns
The declared result.

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

Related types

  • App

    A resolved application bound to operation services.

  • AuthSession

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