Retrieve login form and/or user information
get/login
Response
Login form or user information. The JSON response will always carry the csrf_token information. If the caller is logged in, then additional information is returned. This can be very useful for single-page applications where during a force refresh, all state is lost. By performing this GET, the session cookie will authenticate the user and the response will contain user information.
Example response
{
"user": {
"id": 42
}
}