supabase / auth

A JWT based API for managing users and issuing JWT tokens
https://supabase.com/docs/guides/auth
MIT License
1.41k stars 345 forks source link

Add duplicated Notion template's ID to the JWT receieved after Supabase's Notion OAuth flow #1049

Open AjayRH opened 1 year ago

AjayRH commented 1 year ago

Feature request

Is your feature request related to a problem? Please describe.

Notion's OAuth workflow now allows integrations to duplicate a public Notion template and automatically share the duplicated template with the integration. The JWT that is returned after successful authorization using Supabase's API currently does not include the ID of the duplicated template. The template ID allows integrations to modify the duplicated template in a user's Notion workspace.

Describe the solution you'd like

The JWT returned after successful authorization should include the duplicated template's ID.

Describe alternatives you've considered

After a user has signed in with Notion, trigger another OAuth flow using Notion's native Authorization URL to collect the duplicated template ID

Additional context

Capture

Notion's native OAuth API returns the template id with a key of duplicated_template_id

Marviel commented 1 month ago

@kangmingtay hi!! Wondering if you could point me in the right direction to implement this.

Need it for my use case.