Skip to content

Sign in Failed with Unknown error during RefreshOAuthToken #6109

@Naheulf

Description

@Naheulf

Please confirm the following.

  • I checked the existing issues for duplicate problems
  • I have tried resolving the issue using the support portal
  • I have ensured my Modrinth App installation is up to date

What version of the Modrinth App are you using?

Modrinth App 0.13.17 windows 10.0.19045

What operating systems are you seeing the problem on?

Windows

Describe the bug

Trying to play Minecraft after a long time, I got this error:

Warning

We couldn't sign you into your Microsoft account. This may be due to account restrictions or regional limitations.

Unknown error
We don’t recognize this error and can’t recommend specific steps to resolve it.

Try visiting Minecraft Login and signing in, as it may prompt you with the necessary steps. You can also contact support and we can look into it further.

[Contact support] [Sign in again]


Debug Information

Minecraft authentication error: Failed to deserialize response to JSON during step RefreshOAuthToken: missing field expires_in at line 1 column 204. Status Code: 400 Bad Request Body: {"error":"invalid_grant","error_description":"The user could not be authenticated as the grant is expired. The user must sign in again.","foci":"1","correlation_id":"9bd3ecb7-08cd-4819-9cd4-8ddf1fb9c3a1"}

Note: the correlation_id field look does change each time I try it

Steps to reproduce

  1. Log in to Modrinth with you Minecraft account
  2. Close Modrinth
  3. Wait after your authentication expires. (<-- This may be quite time consuming)
  4. Open (and probably update) Modrinth again
  5. Try to launch an instance.

Expected behavior

Correctly handle this specific error message returned by the authentication servers ("the the grant is expired" stuff) as it should show up for everyone who didn't play Minecraft on Modrinth for some times.
Show an explicit translated message for this case as it will be better for anyone who don't speak English.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    appRelates to Modrinth App

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions