AuthenticateUser

Function AuthenticateUser 

Source
pub async fn AuthenticateUser(
    username: String,
    password: String,
    provider: String,
) -> Result<AuthResponseDTO, String>
Expand description

Command: Authenticate User

Authenticates a user with the specified provider. Delegates to Air’s authentication service.

§Arguments

  • app_handle - Tauri application handle
  • username - User’s username/email
  • password - User’s password (or auth token)
  • provider - Auth provider (“github”, “gitlab”, “microsoft”, etc.)

§Returns

AuthResponseDTO with authentication token