auth-vir 3.1.1 → 3.1.2

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.
@@ -149,16 +149,6 @@ export class FrontendAuthClient {
149
149
  await this.logout();
150
150
  return false;
151
151
  }
152
- /** If the response has a new CSRF token, store it. */
153
- const { csrfToken } = extractCsrfTokenHeader(response, this.config.csrf, {
154
- allowedClockSkew: this.config.allowedClockSkew || defaultAllowedClockSkew,
155
- });
156
- if (csrfToken) {
157
- await storeCsrfToken(csrfToken, {
158
- ...this.config.csrf,
159
- csrfTokenStore: this.config.overrides?.csrfTokenStore,
160
- });
161
- }
162
152
  return true;
163
153
  }
164
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth-vir",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Auth made easy and secure via JWT cookies, CSRF tokens, and password hashing helpers.",
5
5
  "keywords": [
6
6
  "auth",
@@ -282,17 +282,6 @@ export class FrontendAuthClient<AssumedUserParams extends JsonCompatibleObject =
282
282
  return false;
283
283
  }
284
284
 
285
- /** If the response has a new CSRF token, store it. */
286
- const {csrfToken} = extractCsrfTokenHeader(response, this.config.csrf, {
287
- allowedClockSkew: this.config.allowedClockSkew || defaultAllowedClockSkew,
288
- });
289
- if (csrfToken) {
290
- await storeCsrfToken(csrfToken, {
291
- ...this.config.csrf,
292
- csrfTokenStore: this.config.overrides?.csrfTokenStore,
293
- });
294
- }
295
-
296
285
  return true;
297
286
  }
298
287
  }