Skip to content

Releases: atinux/nuxt-auth-utils

v0.0.19

23 Feb 10:46

Choose a tag to compare

compare changes

🚀 Enhancements

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

🏡 Chore

❤️ Contributors

v0.0.18

17 Feb 16:22
5c79590

Choose a tag to compare

compare changes

🚀 Enhancements

  • Add authorizationParams in oauth config (#56)

🩹 Fixes

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

📖 Documentation

🏡 Chore

❤️ Contributors

v0.0.17

16 Feb 12:11

Choose a tag to compare

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

v0.0.16

13 Feb 15:11

Choose a tag to compare

compare changes

🚀 Enhancements

  • Add replaceUserSession() (#44)

🩹 Fixes

  • google: Remove redirectUrl type (#52)

🏡 Chore

❤️ Contributors

v0.0.15

29 Jan 09:09

Choose a tag to compare

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

v0.0.14

05 Jan 12:52

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.13...v0.0.14

v0.0.13

13 Dec 17:32

Choose a tag to compare

compare changes

🏡 Chore

  • Rename session hooks from verify to fetch (10694e9)

v0.0.12

13 Dec 17:23

Choose a tag to compare

compare changes

🩹 Fixes

  • Correct arguments for hooks (6e0193e)

v0.0.11

13 Dec 17:17

Choose a tag to compare

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
  })
})

v0.0.10

07 Dec 14:31

Choose a tag to compare

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: v0.0.9...v0.0.10