Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supabase Auth Compatibility #4145

Closed
jamesmurdza opened this issue May 14, 2023 · 1 comment
Closed

Supabase Auth Compatibility #4145

jamesmurdza opened this issue May 14, 2023 · 1 comment
Labels
kind/bug Something isn't working status/done
Projects

Comments

@jamesmurdza
Copy link

jamesmurdza commented May 14, 2023

What is the problem?

Supabase has easy OAuth integrations NextJS:
https://supabase.com/docs/guides/auth/auth-helpers/nextjs

These don't work out of the box with BlitzJS. I've tried a few times to get them to work with BlitzJS and am quite lost.

What I figured out is that I can get the OAuth bearer token as follows:

const cookie = JSON.parse(ctx.session._req.cookies["supabase-auth-token"])
const token = tokens[2];

but if I continue further in this vein I'll have to reimplement authentication from scratch.

I don't know enough about OAuth and BlitzJS to solve this easily myself.

@jamesmurdza jamesmurdza added kind/bug Something isn't working status/triage labels May 14, 2023
@jamesmurdza
Copy link
Author

Discussion: #4134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/done
Projects
Development

No branches or pull requests

3 participants