nuxt-auth-utils

Minimal Auth module for Nuxt 3.

MIT License

Downloads
24.8K
Stars
410

Bot releases are hidden (Show)

nuxt-auth-utils - v0.2.1 Latest Release

Published by Atinux 3 months ago

compare changes

🚀 Enhancements

  • X/Twitter email requirement enhancement (65d6324)
  • Add yandex oauth (22bd974)

🎨 Styles

❤️ Contributors

nuxt-auth-utils - v0.2.0

Published by Atinux 4 months ago

compare changes

🚀 Enhancements

  • Add Steam as supported oauth provider (c8b02d0)
  • Add Paypal as supported oauth provider (57ea01e)
  • Add X (formerly twitter) as supported oauth provider (a0be1f2)
  • Add XSUAA provider (9afb9eb)

💅 Refactors

  • Replace ofetch with $fetch (a7df1b5)

📖 Documentation

🏡 Chore

❤️ Contributors

  • Jan Fröhlich (@zanfee)
  • Stonegate
  • Yizack Rangel (@Yizack)
  • Ahmed Rangel (@ahmedrangel)
  • Yue JIN (@kingyue737)
  • Paulo Queiroz (@raggesilver)
  • Timi Omoyeni (@Timibadass)
nuxt-auth-utils - v0.1.0

Published by Atinux 4 months ago

compare changes

🚀 Enhancements

We added support for hybrid rendering (#104), learn more in our updated documentation.

It also come with a <AuthState> component.

📖 Documentation

  • Fix typos (149448a)
  • Include SSR instructions in the README, fixes #97 (#99, #97)

🏡 Chore

❤️ Contributors

  • Sébastien Chopin @Atinux
  • Paulo Queiroz @raggesilver
  • Timi Omoyeni @Timibadass
nuxt-auth-utils - v0.0.25

Published by Atinux 5 months ago

compare changes

🚀 Enhancements

  • Add fields support to facebook provider (8e53936)

🏡 Chore

  • Update to latest @nuxt/module-builder (c9e4ff7)

❤️ Contributors

nuxt-auth-utils - v0.0.24

Published by Atinux 6 months ago

compare changes

🚀 Enhancements

  • Add facebook OAuth provider (777d8b2)

🏡 Chore

❤️ Contributors

nuxt-auth-utils - v0.0.23

Published by Atinux 6 months ago

compare changes

🚀 Enhancements

  • Add opts to requireUserSession for error message and status code customization (015e847)

🩹 Fixes

  • Avoid duplicate trigger of session fetch hook due to request retry (5fac9a1)

📖 Documentation

  • Removed reference to /api in readme (#77)

🏡 Chore

❤️ Contributors

nuxt-auth-utils - v0.0.22

Published by Atinux 7 months ago

compare changes

🚀 Enhancements

  • Add redirectUrl to OAuthMicrosoftConfig for HTTP vs HTTPS Handling (50ba6fe)

🩹 Fixes

  • types: Narrowed session type passed to fetch session hook (77c82e7)

📖 Documentation

  • Use new nuxi module add command in installation (d64b9d3)
  • Improve readme (00c8287)

❤️ Contributors

nuxt-auth-utils - v0.0.21

Published by Atinux 7 months ago

compare changes

✨ Improvements

  • add userURL from google provider to be configurable (#70)

❤️ Contributors

nuxt-auth-utils - v0.0.20

Published by Atinux 8 months ago

compare changes

🩹 Fixes

  • Leverage NUXT_SESSION_PASSWORD provided at runtime (4932959)

❤️ Contributors

nuxt-auth-utils - v0.0.19

Published by Atinux 8 months ago

compare changes

🚀 Enhancements

  • Generate NUXT_SESSION_PASSWORD and throw if not set in production (de890ed)
  • Leverage runtimeConfig to check password (7c23543)

🏡 Chore

❤️ Contributors

nuxt-auth-utils - v0.0.18

Published by Atinux 8 months ago

compare changes

🚀 Enhancements

  • Add authorizationParams in oauth config (#56)

🩹 Fixes

  • UserSession user type augmentation (#54)
  • User session types (#55)

📖 Documentation

🏡 Chore

❤️ Contributors

nuxt-auth-utils - v0.0.17

Published by Atinux 8 months ago

compare changes

🩹 Fixes

  • UserSession user type augmentation (#54)

You should now declare UserSession and User separated:

// auth.d.ts
declare module '#auth-utils' {
  interface User {
    id: number
    name: string
  }

  interface UserSession {
    loggedInAt: number
  }
}

export {}

🏡 Chore

❤️ Contributors

nuxt-auth-utils - v0.0.16

Published by Atinux 8 months ago

compare changes

🚀 Enhancements

  • Add replaceUserSession() (#44)

🩹 Fixes

  • google: Remove redirectUrl type (#52)

🏡 Chore

❤️ Contributors

nuxt-auth-utils - v0.0.15

Published by Atinux 9 months ago

compare changes

🚀 Enhancements

  • Add auth0 connection parameter to config (#39)
  • Added aws cognito provider (#36)

🩹 Fixes

  • Replace encoded space characters with regular spaces (#40)

🏡 Chore

❤️ Contributors

nuxt-auth-utils - v0.0.14

Published by Atinux 10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/Atinux/nuxt-auth-utils/compare/v0.0.13...v0.0.14

nuxt-auth-utils - v0.0.13

Published by Atinux 10 months ago

compare changes

🏡 Chore

  • Rename session hooks from verify to fetch (10694e9)
nuxt-auth-utils - v0.0.12

Published by Atinux 10 months ago

compare changes

🩹 Fixes

  • Correct arguments for hooks (6e0193e)
nuxt-auth-utils - v0.0.11

Published by Atinux 10 months ago

compare changes

🚀 Enhancements

Add sessionHooks to extend or invalidate user sessions, as well as logging:

// server/plugins/session.ts
export default defineNitroPlugin(() => {
  sessionHooks.hook('fetch', async (session, event) => {
    // extend User Session by calling your database
    // or
    // throw createError({ ... }) if session is invalid for example
  })

  sessionHooks.hook('clear', async (session, event) => {
    // Log that user logged out
  })
})
nuxt-auth-utils - v0.0.10

Published by Atinux 11 months ago

compare changes

🚀 Enhancements

  • Added linkedIn auth provider (#13)

🩹 Fixes

  • Add audience to auth0 runtime config types (#27)

📖 Documentation

  • Add LinkedIn in providers (c9b9925)

🏡 Chore

❤️ Contributors

Full Changelog: https://github.com/Atinux/nuxt-auth-utils/compare/v0.0.9...v0.0.10

nuxt-auth-utils - v0.0.9

Published by Atinux 11 months ago

compare changes

🚀 Enhancements

  • Add max_age param for auth0 (#26)
  • Added Microsoft as oauth provider (#8)

❤️ Contributors

Package Rankings
Top 8.69% on Npmjs.org
Badges
Extracted from project README
npm version npm downloads License Nuxt