Skip to content

Conversation

@TimeToCodeSomething
Copy link
Contributor

Fixes #2176

Fix Discord OAuth crash on token exchange

Problem:
Discord OAuth flow crashed with a FunctionClauseError because Req.post! returned a map, but we tried to decode it using URI.decode_query/1, which expects a string.

Fix:
Removed URI.decode_query/1 and handled the decoded JSON map directly.

@vtm9 vtm9 merged commit 2310fbc into hexlet-codebattle:master Jun 19, 2025
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.

Bug: Discord OAuth authentication redirects to error page instead of successful login

2 participants