Skip to content

chore: Add Nuxt Example - #24

Closed
frederikprijck wants to merge 1 commit into
mainfrom
feat/nuxt-example
Closed

chore: Add Nuxt Example#24
frederikprijck wants to merge 1 commit into
mainfrom
feat/nuxt-example

Conversation

@frederikprijck

@frederikprijck frederikprijck commented Apr 11, 2025

Copy link
Copy Markdown
Member

Description

This PR adds a very basic, first version of a Nuxt application that leverages @auth0/auth0-server-js.

The nuxt integration is done using a module, containing:

  • A plugin to create an instance of the ServerClient
  • Stateless storage implementations (no stateful atm).
  • 4 endpoints: login, callback, logout and profile
  • A single composable use-auth that we can use to access the user in a component.

Just like with Next.js, for now, the middleware exists only in user-code.

This is a very basic implementation, and may require a bit more work, especially for the things marked with TODO (mostly regarding exposing instances using event.context)

Testing

From the root of the repository, run:

  • npm install
  • npm run dev -w example-nuxt-web

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not the default branch

@frederikprijck
frederikprijck force-pushed the feat/nuxt-example branch 2 times, most recently from 0e9eec5 to 052ed13 Compare April 11, 2025 12:39
@frederikprijck

Copy link
Copy Markdown
Member Author

Closing this in favor of the Nuxt SDK we are working on.

@frederikprijck
frederikprijck deleted the feat/nuxt-example branch February 11, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant