这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Mar 21, 2023

This PR adds isAuthTokenGenerationError: true flag into the Unauthorized 401 repronse in cases when token is expired for better UX of 2FA


signIn request example

{
  "method": "signIn",
  "auth": {
    "email": "user@email.com",
    "isSubAccount": false
  }
}

signIn response example

{
  "jsonrpc": "2.0",
  "error": {
    "code": 401,
    "message": "Unauthorized",
    "data": {
      "isAuthTokenGenerationError": true,
      "rootMessage": "StatusCodeError: 500 - [\"error\",10100,\"token: invalid\"]"
    }
  },
  "id": null
}

Depends on these PRs:

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants