markbates / markbates/goth

Error when get user from provider

Open
#410 0 comments 20 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.6k
Forks
631
PR merge metrics
No merged PRs in 30d

Description

I'm using Goth to authenticate with Google, Facebook, and Apple. In most cases, it works perfectly, but I'm having a problem with a small number of users who get the following error: `could not find a matching session for this request`

The error happens when validating with the provider, right after receiving the callback. I saw some open issues mentioning that it may be related to the callback URL different from the origin, but this is not my case, and the error is intermittent.

Any suggestion about it?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at provider validation immediately after the callback and trace how the matching session is looked up. Compare the intermittent failing cases with the callback URL and origin, then determine what reproducible behavior should be covered by a fix.】【。

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.