Missing additional login return data from the Notion auth provider

Open
#1,353 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go

Research direction

No file or test is named in the issue. Start by reviewing the Notion OAuth response handling and discussion #12278 to see how provider-returned data is represented; done means bot_id, workspace_name, and workspace_icon are accessible in addition to provider_token.

Written by the indexing model from the issue text.

Description

Discussed in https://github.com/orgs/supabase/discussions/12278

Originally posted by madebyisaacr February 9, 2023
When using Notion as an auth provider, Notion returns a lot of additional information when a user signs in. From this data, access_token is available as supabase.auth.getSession().data.session.provider_token, but I can't find a way to retrieve any of the other return data.

Is it possible to access any of the data Notion returns in Supabase? Being able to use some of these properties like bot_id, workspace_name, workspace_icon would be very helpful for the app I'm making.

A screenshot from Notion developer docs showing the return information:

image

Dominant language
Go
Stars
2.6k
Forks
764
Avg merge
5d 3h
Merged PRs (30d)
39

Contributor guide

Open the contributing guide

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.

More from supabase/auth

All issues in supabase/auth

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.