method
App.LoginWithOptions
Authenticate and record safe client metadata on the resulting session.
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. |
options | LoginOptions | The 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)Related types
AppA resolved application bound to operation services.
LoginOptionsRequest metadata and cookie-independent controls for local login.
AuthSessionA newly authenticated session and its one-time raw token.