auth-vir 2.3.1 → 2.3.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.
@@ -51,7 +51,7 @@ export type BackendAuthClientConfig<DatabaseUser extends AnyObject, UserId exten
51
51
  * called, the same JWT keys are returned (do not call {@link generateNewJwtKeys} each time
52
52
  * this is called). Any time the JWT keys change, all current sessions will terminate.
53
53
  */
54
- getJetKeys: () => MaybePromise<Readonly<RawJwtKeys>>;
54
+ getJwtKeys: () => MaybePromise<Readonly<RawJwtKeys>>;
55
55
  /**
56
56
  * When `isDev` is set, cookies do not require HTTPS (so they can be used with
57
57
  * http://localhost).
@@ -140,7 +140,7 @@ export class BackendAuthClient {
140
140
  * something else too.
141
141
  */
142
142
  async getJwtParams() {
143
- const rawJwtKeys = await this.config.getJetKeys();
143
+ const rawJwtKeys = await this.config.getJwtKeys();
144
144
  const cacheKey = JSON.stringify(rawJwtKeys);
145
145
  const cachedParsedKeys = this.cachedParsedJwtKeys[cacheKey];
146
146
  const parsedKeys = cachedParsedKeys ?? (await parseJwtKeys(rawJwtKeys));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth-vir",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Auth made easy and secure via JWT cookies, CSRF tokens, and password hashing helpers.",
5
5
  "keywords": [
6
6
  "auth",
@@ -72,7 +72,7 @@ export type BackendAuthClientConfig<
72
72
  * called, the same JWT keys are returned (do not call {@link generateNewJwtKeys} each time
73
73
  * this is called). Any time the JWT keys change, all current sessions will terminate.
74
74
  */
75
- getJetKeys: () => MaybePromise<Readonly<RawJwtKeys>>;
75
+ getJwtKeys: () => MaybePromise<Readonly<RawJwtKeys>>;
76
76
  /**
77
77
  * When `isDev` is set, cookies do not require HTTPS (so they can be used with
78
78
  * http://localhost).
@@ -350,7 +350,7 @@ export class BackendAuthClient<
350
350
  * something else too.
351
351
  */
352
352
  public async getJwtParams(): Promise<Readonly<CreateJwtParams>> {
353
- const rawJwtKeys = await this.config.getJetKeys();
353
+ const rawJwtKeys = await this.config.getJwtKeys();
354
354
 
355
355
  const cacheKey = JSON.stringify(rawJwtKeys);
356
356