login

context(ctx: PageContext)
suspend fun login(credentials: UserRequestModel? = null, provider: String? = null): Either<Issue, Unit>

Performs a login request.

If the current KovenConfig.auth is AuthType.Password, credentials must be provided.

If it is AuthType.OAuth and multiple providers are configured, provider should be provided.

Parameters

credentials

Credentials for password login.

provider

The OAuth provider name. Defaults to the first configured provider.