Notion OAuth provider returns 403 when retrieving user profile (GoTrue v2.188.1)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- go
- Domain
- authentication
Research direction
Start at GoTrue's Notion OAuth flow and trace the token exchange response containing owner.user, then reproduce the callback with the listed Notion integration capability. Done means the callback uses the available owner.user data to create or log in the user without failing on the separate /v1/users/me request returning 403.
Written by the indexing model from the issue text.
Description
Hi team, first of all thanks for the amazing work on Supabase Auth — really appreciate it!
I've run into an issue with the Notion OAuth provider on GoTrue v2.188.1.
After completing Notion OAuth flow, GoTrue calls /v1/users/me on Notion's API and receives a 403 error. The user info (name, email) is available in the token exchange response under owner.user but is not being used.
Error in logs:
"error": "a 403 error occurred with retrieving user from notion"
"msg": "500: Error getting user profile from external provider"
GoTrue version: v2.188.1
Steps to reproduce:
- Configure Notion OAuth provider in Supabase project
- Set "Read user information including email addresses" in Notion integration capabilities
- Click "Sign in with Notion"
- After Notion authorization, callback fails with 403
Expected: User is created/logged in using owner.user data from the token exchange response
Actual: GoTrue makes a separate call to /v1/users/me which returns 403 for OAuth tokens
Happy to provide any additional info or test a fix if needed. Thanks again!
- Dominant language
- Go
- Stars
- 2.6k
- Forks
- 764
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 39
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/auth
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100