# Video Tutorial for Supabase Magic Link

**URL:** <https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234>\
**Category:** Tutorials\
**Tags:** authentication, supabase\
**Created:** [November 6, 2023, 9:10am UTC](https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234 "2023-11-06T09:10:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thecalda](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/thecalda/32/3603_2.png) [@thecalda](https://community.weweb.io/u/thecalda)\
**Post date:** [November 6, 2023, 9:10am UTC](https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234/1 "2023-11-06T09:10:03Z")

</div>

Hey guys, we just published a Youtube tutorial on how to set up Supabase Magic Link auth - feel free to check it out!

Youtube link: [https://www.youtube.com/watch?v=eYoDT9tKCwA&t=5s](https://www.youtube.com/watch?v=eYoDT9tKCwA&t=5s)

Let us know what you think and what tutorials you would look for next!

Thanks! 🧡🐙

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [November 6, 2023, 10:03am UTC](https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234/2 "2023-11-06T10:03:16Z")

</div>

Cool! But this way, you leave the old “Please check your mail” opened, and you open an another window with the Redirect Right?

Btw, I moved this to Tutorials, as it seems more appropriate 🙂

---

<div class="post-metadata">

**Author:** ![greger](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@greger](https://community.weweb.io/u/greger)\
**Post date:** [December 20, 2023, 1:42pm UTC](https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234/3 "2023-12-20T13:42:49Z")

</div>

Hi @thecalda, nice video guide! have you tried redirecting to a private-page via the magic link?

I get bounced from “dashboard-page” to the login-page by default if a user is not signed in. But when I go directly to the dashboard-page Im logged in…

---

<div class="post-metadata">

**Author:** ![greger](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@greger](https://community.weweb.io/u/greger)\
**Post date:** [December 20, 2023, 9:33pm UTC](https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234/4 "2023-12-20T21:33:51Z")

</div>

I found a solution to handle redirection to private page with Magic Link from Supabase. Here are some resources and a solution, which have been tested and works in production!

Similar challenges with redirection to private page:

> [@How to make Google Auth + supabase redirect to a private page](https://community.weweb.io/t/how-to-make-google-auth-supabase-redirect-to-a-private-page/4874/2):
>
> Hi @TapTap21 wave Ah yes. I need to improve the docs on this! You need to redirect to a public page because that’s what allows WeWeb (or any frontend for that matter) to read the cookie from the external provider before it gets the user: If you redirected directly to a private page, the authentication would fail. For your use case, your public page can be blank with a workflow triggered On page load (before fetching collections) to redirect the user …

Solution with Post Page redirect to private page:

[![](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/3b96da8ff0a4c1a6ff99cfd31ccfd778ba21fa84.jpeg "Add Google OAuth to your WeWeb project (using Xano)") ](https://www.youtube.com/watch?v=FaTHPG9kUrk&t=1573s)

Documentation for handling 3P auth redirection to private page:

> **[Xano authentication | WeWeb Documentation](https://docs.weweb.io/plugins/auth-systems/xano-auth.html#oauth-social-sign-in)**
>
> Learn how to work with Xano auth in WeWeb

---

<div class="post-metadata">

**Author:** ![Aulbourn](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Aulbourn](https://community.weweb.io/u/Aulbourn)\
**Post date:** [December 7, 2024, 5:45pm UTC](https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234/5 "2024-12-07T17:45:11Z")

</div>

I did this setup, but I have an issue: I’m not getting the correct email. Instead of getting the magic link email im getting the confirm sign-up email.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [December 8, 2024, 7:32am UTC](https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234/6 "2024-12-08T07:32:22Z")

</div>

It might be because you’re not signed up with email confirmed

---

<div class="post-metadata">

**Author:** ![Aulbourn](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Aulbourn](https://community.weweb.io/u/Aulbourn)\
**Post date:** [December 28, 2024, 3:22am UTC](https://community.weweb.io/t/video-tutorial-for-supabase-magic-link/5234/7 "2024-12-28T03:22:13Z")

</div>

That’s exactly what it was. I am learning this bit by bit.
