RetroAchievements / rcheevos

Library to parse and evaluate achievements and leaderboards for RetroAchievements
MIT License
90 stars 34 forks source link

convert server error code strings to return values #277

Closed Jamiras closed 1 year ago

Jamiras commented 1 year ago

Leverages changes made in https://github.com/RetroAchievements/RAWeb/pull/1692 to return more specific error codes for login failures:

code description
RC_INVALID_CREDENTIALS The provided credentials were not recognized.
RC_EXPIRED_TOKEN The provided token has expired. The user should re-enter their credentials to generate a new token.
RC_ACCESS_DENIED Valid credentials were provided, but the user lacks permission. For login, this typically means the user has not verified their account.