Login for Swagger documentation
swagger_login.RdAuthenticate directly with email and password and return the raw response containing a token. This is intended for API developers who need a token to authorize requests in the Swagger UI on a remote server, where the normal OAuth browser flow is not available.
See also
auth_login() for the standard authentication flow,
add_api() to register API endpoints
Examples
if (FALSE) { # \dontrun{
resp <- swagger_login("user@example.com", "password", "myproject")
httr2::resp_body_json(resp)$data$token
} # }