async fn login(
    tenant: &str,
    body: Json<RecvSession>
) -> Result<Json<SessionResponse>, ErrorResponse>
Expand description

Route for user login.

This route requires that the tenant is informed on the login route. Furthermore, login needs login data for the creation of a session.

Upon a successful login attempt, the route will return the tenant and the session token data for the current user.