markbates / markbates/goth

[Twitch][Gin] Can't fetch user information

Open
#342 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
6.6k
Forks
631
PR merge metrics
No merged PRs in 30d

Description

After successful twitch sign in i was redirected to my website, the error occurred on the user fetch state. It might be GET values parsing error because i use GIN?

http://127.0.0.1:3000/auth/twitch/callback?code=codeishere777777777777&scope=user_read&state=manycharacters

Error: twitch responded with a 401 trying to fetch user information

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Twitch sign-in flow using the callback URL and parameters shown in the issue, then trace the user fetch state that returns the 401 response. Done means the callback values are handled correctly and Twitch user information can be fetched after sign-in.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.