---
title: "Discussion on \"Build a secure web application with Platformatic, Auth0 and Next.js\" | Hashnode"
description: "Discussion on \"Build a secure web application with Platformatic, Auth0 and Next.js\". Introduction\nPlatformatic DB provides role-based support for authorization. This allows us to restrict access to specific parts of the automatic APIs that Platformatic DB generates for us. We can then integrate an external service like Auth0 to provi..."
url: "https://hashnode.com/posts/build-a-secure-web-application-with-platformatic-auth0-and-nextjs/643fffadd5147b909cf8fad2"
---

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

Discussion

# [Build a secure web application with Platformatic, Auth0 and Next.js](https://blog.platformatic.dev/build-a-secure-web-application-with-platformatic-auth0-and-nextjs?utm_source=hashnode&utm_medium=feed)

Introduction Platformatic DB provides role-based support for authorization. This allows us to restrict access to specific parts of the automatic APIs that Platformatic DB generates for us. We can then integrate an external service like Auth0 to provi...

Apr 19, 2023 · 29 min read · blog.platformatic.dev  
Read the article

-   [#platformatic](https://hashnode.com/tag/platformatic)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#auth0](https://hashnode.com/tag/auth0)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Simon Plenderleith](https://hashnode.com/@simonplend)

@simonplend

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

Independent Node.js consultant and educator

## Responses 2

Markdown supported · ⌘↵ to post

[Samantha Vale](https://hashnode.com/@karlasamantha)

[May 3, 2023](https://hashnode.com/posts/build-a-secure-web-application-with-platformatic-auth0-and-nextjs/643fffadd5147b909cf8fad2/comment/6451cb907a00e1d8014fe391)

Amazing tutorial, thank you for sharing! I did wanted to ask about an issue I'm facing, when running the frontend app it fails on window undefined, even with the typeof check. Any recommendations on how to fix this issue? Thanks!

[Simon Plenderleith](https://hashnode.com/@simonplend)

[May 23, 2023](https://hashnode.com/posts/build-a-secure-web-application-with-platformatic-auth0-and-nextjs/643fffadd5147b909cf8fad2/comment/6451cb907a00e1d8014fe391#reply-646d3ed79098493346f6efe2)

Thanks for the kind words, Samantha!

Sorry to hear about the problem you've run into. If you're able to jump on to the Platformatic Discord it will be easier for me to try to help you debug the issue there: [discord.gg/platformatic](https://discord.gg/platformatic)
