method
App.Login
Authenticate one collection identity with a password.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
email | string | The email value. |
password | string | The 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)Related types
AppA resolved application bound to operation services.
AuthSessionA newly authenticated session and its one-time raw token.