-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
✨ Demo auth #12
✨ Demo auth #12
Conversation
ThatXliner
commented
Nov 18, 2023
•
edited
Loading
edited
- Closes Auth #2
export default async function Index() { | ||
const cookieStore = cookies(); | ||
const client = createClient(cookieStore); | ||
if ((await client.auth.getUser()).data.user == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :: Could we get a wrapper for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Was unable to test due to the Supabase instance not sending email, but it seems fine. No mobile auth is fine for now, I'll make another issue regarding that in a bit.
You don’t need to test on production. Production server should just work if the redirect urls are configured properly. Local Supabase doesn’t send emails |
On second thought, perhaps only the official hosted Supabase has that email feature built-in to “just work.” Further research is needed |
Yeah, I have an SMTP server setup on AWS, I just need to hook it up to Supabase, which I'l probably do now or after class today. |