Making BlitzJS work with backend OAuth from Supabase #4134
Unanswered
jamesmurdza
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Supabase has useful instructions for how to make OAuth work frontend and backend with NextJS: https://supabase.com/docs/guides/auth/auth-helpers/nextjs
The frontend part works fine, of course, with BlitzJS. I have been trying for a while to get it to work with the backend. Here's what I've tried:
https://gist.github.com/jamesmurdza/70514bcce34fd8f07ef4f1d460aea45b
As you can see, the Supabase middleware isn't playing well with BlitzJS. Seems the BlitzJS ctx is very different than NextJS. I would love to get this working, has been a huge blocker for me.
Thanks for your guidance!
James
Beta Was this translation helpful? Give feedback.
All reactions