Client Side Oauth?
I'm trying to work out a client side PKCE workflow for the sake of integrating Notion Oauth, specifically. Using Next.js. Main concern is whether PKCE actually needs server-side code to work, or if I can hack it client side.
Reason for this is I have Next.js exporting to static, and I don't have an easy way of supporting API routes with it because I have another framework handling the REST API (yes, yes, silly decision, I know).
Here's the code I have so far:
And the Supabase client mentioned in
Reason for this is I have Next.js exporting to static, and I don't have an easy way of supporting API routes with it because I have another framework handling the REST API (yes, yes, silly decision, I know).
Here's the code I have so far:
And the Supabase client mentioned in
@lib/supabase: