# Getting Auth0 working with Nuxt 3 SSR

**URL:** <https://community.auth0.com/t/getting-auth0-working-with-nuxt-3-ssr/182274>\
**Category:** Get Help\
**Tags:** other, missing-category\
**Created:** [February 17, 2025, 5:24am UTC](https://community.auth0.com/t/getting-auth0-working-with-nuxt-3-ssr/182274 "2025-02-17T05:24:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott.carlton](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scott.carlton/32/72976_2.png) [@scott.carlton](https://community.auth0.com/u/scott.carlton)\
**Post date:** [February 17, 2025, 5:24am UTC](https://community.auth0.com/t/getting-auth0-working-with-nuxt-3-ssr/182274/1 "2025-02-17T05:24:42Z")

</div>

I’ve trying for days now to get Auth0 working with Nuxt 3 SSR. The vue-sdk is not configured to work with SSR causing multiple errors due to looking at window or document. I’ve also had to use server routes to redirect users to login because we need to send a user to the login from our application without route flashes or loginWithRedirect.

If anyone has been able to get Auth0 working with Nuxt and SSR please let me know your approach because I’ve had zero luck.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [February 18, 2025, 3:14pm UTC](https://community.auth0.com/t/getting-auth0-working-with-nuxt-3-ssr/182274/2 "2025-02-18T15:14:44Z")

</div>

Hi @scott.carlton

Welcome to the Auth0 Community!

I’m not a Nuxt expert, but while researching your question, I found that on the Nuxt roadmap, they don’t have a planned release for auth0 utils yet. However, they’ve provided the temporary repository → [GitHub - atinux/nuxt-auth-utils: Add Authentication to Nuxt applications with secured & sealed cookies sessions.](https://github.com/atinux/nuxt-auth-utils), and it looks like it supports both SSR and Auth0. Did you have a chance to check this library?

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![scott.carlton](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scott.carlton/32/72976_2.png) [@scott.carlton](https://community.auth0.com/u/scott.carlton)\
**Post date:** [February 18, 2025, 4:33pm UTC](https://community.auth0.com/t/getting-auth0-working-with-nuxt-3-ssr/182274/3 "2025-02-18T16:33:22Z")

</div>

Dawid,  
Thanks for the reply. I had looked at that module but thought it might not meet our use case. We don’t use a click event on a button to trigger the loginWIthRedirect that auth0 implements.

In our case a user that goes to our /login or /o/:slug for organizations is redirected via a server/routes/login or server/routes/o/[slug] file that does the redirect to auth0’s login flow base on a url string using the clientId, auth0 domain and any other requirements for that flow. This all appears to be working as expected.

The primary issue is when the user is redirect to /callback it continues to fail with a 500 issue a soon as i implement any sdk method and I’ve not been able to solve it gracefully with event with import.meta.client.

Thought I saw the Nuxt SDK package has been in discussion and on the roadmap since mid 2023 and was suppose to be supported Q3 2024 but has been moved out to Q3 2025.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [October 31, 2025, 1:19pm UTC](https://community.auth0.com/t/getting-auth0-working-with-nuxt-3-ssr/182274/6 "2025-10-31T13:19:55Z")

</div>

Hi team!

The first public beta of the Auth0 Nuxt SDK is now available for developers building web apps on the **Nuxt** framework!

### Key Highlights

- **Idiomatic Nuxt 3 Experience:** Simple, composable functions (useAuth0) that feel native to Nuxt developers, dramatically reducing time-to-first-login.
- **Advanced Security Out-of-the-Box:** We’ve included support for the latest security standards from day one, including Pushed Authorization Requests (PAR), Rich Authorization Requests (RAR), and Backchannel Logout.
- **Powerful API Authentication:** Seamlessly obtain tokens for backend APIs using the TokenVault integration.

### Resources

Here are the helpful resources to explore the new Nuxt SDK and get started:

- [Quickstart](https://auth0.mintlify.app/docs/quickstart/webapp/nuxt)
- [Examples](https://github.com/auth0/auth0-nuxt/tree/main/examples)

This SDK is still in Beta and we need your feedback! Please share any feedback, questions or comments on [GitHub](https://github.com/auth0/auth0-nuxt).

Thanks!  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 14, 2025, 1:20pm UTC](https://community.auth0.com/t/getting-auth0-working-with-nuxt-3-ssr/182274/7 "2025-11-14T13:20:49Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
