---
title: "Discussion on \"Magic Link Authentication and Route Controls with Supabase and Next.js\" | Hashnode"
description: "Discussion on \"Magic Link Authentication and Route Controls with Supabase and Next.js\". In this post, we'll build out a Next.js app that enables navigation, authentication, authorization, redirects (client and server-side), and profile."
url: "https://hashnode.com/posts/magic-link-authentication-and-route-controls-with-supabase-and-nextjs/60ed9230fc37a15ec1568159"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Magic Link Authentication and Route Controls with Supabase and Next.js](https://dabit3.hashnode.dev/magic-link-authentication-and-route-controls-with-supabase-and-nextjs?utm_source=hashnode&utm_medium=feed)

In this post, we'll build out a Next.js app that enables navigation, authentication, authorization, redirects (client and server-side), and profile.

Jul 13, 2021 · 9 min read · dabit3.hashnode.dev  
Read the article

-   [#webdev](https://hashnode.com/tag/webdev)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#serverless](https://hashnode.com/tag/serverless)

## Written by

[Nader Dabit](https://hashnode.com/@dabit3)

@dabit3 · Madison, MS

  
[View profile](https://hashnode.com/@dabit3)

Web and mobile developer, author, and speaker specialize in cross-platform and cloud-enable application development.

## Responses 2

Markdown supported · ⌘↵ to post

[Sycamore](https://hashnode.com/@tanoaksam)

[Jul 15, 2021](https://hashnode.com/posts/magic-link-authentication-and-route-controls-with-supabase-and-nextjs/60ed9230fc37a15ec1568159/comment/60ef847a7d1ba06449139d77)

Great piece! Thanks for sharing Nader!

[Jarrod Watts](https://hashnode.com/@JarrodWatts)

[Jul 14, 2021](https://hashnode.com/posts/magic-link-authentication-and-route-controls-with-supabase-and-nextjs/60ed9230fc37a15ec1568159/comment/60ee4ae3fc37a15ec15696af)

```
supabase.auth.api.setAuthCookie(req, res)
```

What an awesome feature - I need to give Supabase a try...

Great read as usual Nader!
