successwill always be false in case of an error,
codewill always be present,
detailmay not be present.
authentication_error:Failure to properly authenticate yourself in the request. Status 401 or 403.
invalid_request_error:Your request is invalid for the given endpoint. Status 400, 402 or 404.
api_error:API errors cover any other type of problem (e.g., a temporary problem with Magic Login's service). Of course we do our best to make sure these never happen. Status 500, 502, 503 or 504
rate_limit_error:You made too many requests in a short period of time. Status 429
successfield returned by API endpoints indicate whether the request was succesful or not.
success: truewith HTTP status code 200, the token may still be invalid! Check the corresponding field in the data field.