Releases: sidebase/nuxt-auth
Releases · sidebase/nuxt-auth
0.0.1-beta.6
What's Changed
- feat: add
getToken, provider autocomplete by @BracketJohn in #25 - feat: improve types by re-using useFetch by @BracketJohn in #24
- docs: improve readme by @atinux in #15
- docs: use universal instead of app by @BracketJohn in #23
- release: 0.0.1-beta.6 by @BracketJohn in #26
New Contributors
Full Changelog: 0.0.1-beta.5...0.0.1-beta.6
0.0.1-beta.5
What's Changed
- Fix: Starts OAuth sign-in flow when clicked by @mgandara88 in #17
- release: 0.0.1-beta.5 by @BracketJohn in #18
New Contributors
- @mgandara88 made their first contribution in #17
Full Changelog: 0.0.1-beta.4...0.0.1-beta.5
0.0.1-beta.4
What's Changed
- Switch to user-runtime config approach by @BracketJohn in #10
- fix: docs ordering, call in onClick by @BracketJohn in #11
- release: 0.0.1-beta.4 by @BracketJohn in #12
Full Changelog: 0.0.1-beta.3...0.0.1-beta.4
0.0.1-beta.3
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
- @BracketJohn made their first contribution in #4
Full Changelog: 0.0.1-beta.2...0.0.1-beta.3
0.0.1-beta.2
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
Nuxt user authentication and sessions via NextAuth.js.
nuxt-authwraps 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
- Install the package:
npm i -D @sidebase/nuxt-auth
- Add the package to your
nuxt.config.ts:export default defineNuxtConfig({ modules: ['@sidebase/nuxt-auth'], })
- Done! You can now use all user-related functionality, for example:
- client-side (e.g., from
.vuefiles):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()
- client-side (e.g., from
Full Changelog: https://github.com/sidebase/nuxt-auth/commits/0.0.1-beta.1