Auth Module for Nuxt 2.

Zero-boilerplate authentication support for Nuxt 2!

The module authenticates users using a configurable authentication scheme or by using one of the directly supported providers. It provides an API for triggering authentication and accessing resulting user information. While it takes care of storing the information on the client-side, it does NOT implement session handling or provide session based authentication on the NuxtJS server.

Nuxt 3 Support

Nuxt 3 comes with built-in utilities to support session and authentication. We are working on a new official module.

Meanwhile, we recommend:

Getting Started

If it is first time using this module, reading resources below in order is recommended:

  1. Add auth and axios modules
  2. Setup auth middleware
  3. Configure local scheme
  4. Customize options
  5. Use $auth service

You can also watch a video introduction by VueScreencasts. It covers the same material, but in the context of a working Nuxt app.

Nuxt Auth - Authentication and Authorization in NuxtJS

More Resources

Edit this page on GitHub Updated at Thu, Oct 5, 2023