Skip to main content

admin_login_as_route

Function admin_login_as_route 

Source
pub(crate) async fn admin_login_as_route(
    __arg0: State<State>,
    body: Args<Request>,
) -> Result<Response>
Expand description

§POST /_synapse/admin/v1/users/{user_id}/login

Mints a token through a visible device on the target account. The target’s logout revokes it, and an optional expiry is enforced during authentication. This route is unavailable while Matrix Authentication Service is active.