Skip to content

Releases: sidebase/nuxt-auth

0.0.1-beta.6

13 Nov 14:48
82313f2

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.0.1-beta.5...0.0.1-beta.6

0.0.1-beta.5

10 Nov 11:45
12cd848

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.0.1-beta.4...0.0.1-beta.5

0.0.1-beta.4

07 Nov 01:26
23f1ac0

Choose a tag to compare

What's Changed

Full Changelog: 0.0.1-beta.3...0.0.1-beta.4

0.0.1-beta.3

01 Nov 16:48
a126953

Choose a tag to compare

What's Changed

  • fix(ci): use correct build command
  • feat: log a bit more on module setup
  • release: 0.0.1-beta.3 by @BracketJohn in #6

New Contributors

Full Changelog: 0.0.1-beta.2...0.0.1-beta.3

0.0.1-beta.2

01 Nov 16:42

Choose a tag to compare

Full Changelog: 0.0.1-beta.1...0.0.1-beta.2

Added:

  • feat(docs): getting started includes provider configuration
  • feat(nitro): automatically add virtual imports for the providers that are configured in nuxt.config.ts

0.0.1-beta.1

30 Oct 19:05

Choose a tag to compare

0.0.1-beta.1 Pre-release
Pre-release

Nuxt user authentication and sessions via NextAuth.js. nuxt-auth wraps NextAuth.js to offer the reliability & convenience of a 12k star library to the nuxt 3 ecosystem with a native developer experience (DX).

Quick Start

  1. Install the package:
    npm i -D @sidebase/nuxt-auth
  2. Add the package to your nuxt.config.ts:
    export default defineNuxtConfig({
      modules: ['@sidebase/nuxt-auth'],
    })
  3. Done! You can now use all user-related functionality, for example:
    • client-side (e.g., from .vue files):
      const {
        status,
        data,
        signIn,
        signOut,
      } = await useSession({
        // Whether a session is required. If it is, a redirect to the signin page will happen if no active session exists
        required: true
      })
      
      // Session status: `unauthenticated`, `loading`, `authenticated`
      status.value
      
      // Session data, e.g., expiration, user.email, ...
      data.value
      
      // Start the unbranded sign-in flow
      await signIn()
      
      // Logout the user
      await signOut()

Full Changelog: https://github.com/sidebase/nuxt-auth/commits/0.0.1-beta.1