auth-vir 5.0.3 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -312,7 +312,9 @@ export class BackendAuthClient {
312
312
  ? generateLogoutHeaders(await this.getCookieParams({
313
313
  isSignUpCookie: !isSignUpCookie,
314
314
  requestHeaders,
315
- }))
315
+ }), {
316
+ preserveCsrf: true,
317
+ })
316
318
  : undefined;
317
319
  const existingUserIdResult = await extractUserIdFromRequestHeaders(requestHeaders, await this.getJwtParams(), this.config.csrf, isSignUpCookie ? AuthCookie.SignUp : AuthCookie.Auth);
318
320
  const cookieParams = await this.getCookieParams({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth-vir",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "Auth made easy and secure via JWT cookies, CSRF tokens, and password hashing helpers.",
5
5
  "keywords": [
6
6
  "auth",
@@ -664,6 +664,9 @@ export class BackendAuthClient<
664
664
  isSignUpCookie: !isSignUpCookie,
665
665
  requestHeaders,
666
666
  }),
667
+ {
668
+ preserveCsrf: true,
669
+ },
667
670
  )
668
671
  : undefined;
669
672