Your AdonisJS ecosystem, in the loop.
All insights
release

Auth v10.1.1 Bug Fix Release

· Developer impact : medium

This release fixes two issues in the @adonisjs/auth package: the browser client's loginAs method now properly awaits session and cookie writes to prevent premature test completion errors, and the session guard's authentication_succeeded event now emits the updated remember-me token instead of the deleted one.

What this means for your code

Developers using the Japa browser client for testing will experience more reliable loginAs behavior, avoiding test run failures due to asynchronous session/cookie writes. Also, event listeners for session_auth:authentication_succeeded will now receive the correct remember-me token after login, improving token handling consistency.

  • Update @adonisjs/auth to v10.1.1 to get these fixes.
  • Review tests using browserContext.loginAs() to ensure they benefit from the awaited session and cookie writes.
  • If your code listens to session_auth:authentication_succeeded, verify that it handles the new emitted token correctly.

Original sources

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.

Independent ecosystem watch. Sources linked in every insight.Built with AdonisJS · AI-assisted summariesBy Jérémy Chaufourier · chaufourier.fr