← All Releases

2.2.0

June 12, 2026

Auth plugin and composable renames, DynamoDB lazy-loading, and sign-in payload fix

Summary

  • Renamed $api to $accApi and useAccActiveSessionId() to useAccAuthActiveSessionId().
  • Improved DynamoDB auth storage with lazy AWS SDK loading and early dependency validation.
  • Fixed internal sign-in payload structure and consolidated session token types.

Breaking Changes

  • Renamed useAccActiveSessionId() to useAccAuthActiveSessionId() in the exported auth state composables. Update imports and usages accordingly.
  • Renamed the injected API plugin from $api to $accApi. Update direct usages of useNuxtApp().$api to useNuxtApp().$accApi (or prefer useAccApi()).

Changed

  • Changed the DynamoDB auth session storage driver to lazy-load AWS SDK packages at runtime so non-DynamoDB consumers do not need them installed.

Fixed

  • Fixed signInWithPassword wrapping sessionDuration and baseUrl in an unnecessary options object; these are now top-level fields on SignInWithPasswordInput.
  • Fixed missing AWS SDK packages for DynamoDB storage being detected too late; the module now validates and reports them with a clear install command at setup time.
  • Fixed duplicate session token type definitions by extracting a shared SessionTokens type and removing ProviderSessionTokens/ProviderSignInPayload.