# Auth v10\.1\.1 Bug Fix Release

Canonical URL : https://adonisjs-signal.jrmc.dev/insights/29d4fbe1-b7f3-40b2-917d-d8484aedd853
Source release or documentation date : 2026-11-19T09:11:03.000Z
Category : release | Developer impact : medium
Affected packages : @adonisjs/auth

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\.

## Suggested actions

- 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

- [Fix loginAs in browser tests and the token of authentication\_succeeded](https://github.com/adonisjs/auth/releases/tag/v10.1.1)

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