@adminforth/two-factors-auth 3.3.2 → 3.3.3

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.
package/build.log CHANGED
@@ -16,5 +16,5 @@ custom/pnpm-lock.yaml
16
16
  custom/tsconfig.json
17
17
  custom/utils.js
18
18
 
19
- sent 285,632 bytes received 229 bytes 571,722.00 bytes/sec
20
- total size is 284,738 speedup is 1.00
19
+ sent 285,623 bytes received 229 bytes 571,704.00 bytes/sec
20
+ total size is 284,729 speedup is 1.00
@@ -328,8 +328,8 @@
328
328
  try {
329
329
  options = PublicKeyCredential.parseRequestOptionsFromJSON(_options);
330
330
  } catch (e) {
331
- console.error(t('Error parsing request options:', e));
332
- adminforth.alert({message: t('Error initiating passkey authentication.'), variant: 'warning'});
331
+ console.error('Error parsing request options:', e);
332
+ adminforth.alert({message: t('Error initiating passkey authentication.'), variant: 'danger'});
333
333
  return;
334
334
  }
335
335
  const credential = await authenticate(options);
@@ -361,8 +361,8 @@
361
361
  if (response.ok === true) {
362
362
  return { _options: response.data, challengeId: response.challengeId };
363
363
  } else {
364
- adminforth.alert({message: t('Error creating sign-in request.'), variant: 'warning'});
365
- codeError.value = t('Error creating sign-in request.');
364
+ adminforth.alert({message: t('Error creating sign-in request.'), variant: 'danger'});
365
+ codeError.value = 'Error creating sign-in request.';
366
366
  }
367
367
  }
368
368
 
@@ -400,7 +400,7 @@
400
400
  codeError.value = t('A previous passkey attempt was still pending. Please try again.');
401
401
  return null;
402
402
  } else if (name === 'NotAllowedError') {
403
- adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: 'warning' });
403
+ adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: 'danger' });
404
404
  codeError.value = t('The operation either timed out or was not allowed.');
405
405
  return null;
406
406
  } else {
@@ -328,8 +328,8 @@
328
328
  try {
329
329
  options = PublicKeyCredential.parseRequestOptionsFromJSON(_options);
330
330
  } catch (e) {
331
- console.error(t('Error parsing request options:', e));
332
- adminforth.alert({message: t('Error initiating passkey authentication.'), variant: 'warning'});
331
+ console.error('Error parsing request options:', e);
332
+ adminforth.alert({message: t('Error initiating passkey authentication.'), variant: 'danger'});
333
333
  return;
334
334
  }
335
335
  const credential = await authenticate(options);
@@ -361,8 +361,8 @@
361
361
  if (response.ok === true) {
362
362
  return { _options: response.data, challengeId: response.challengeId };
363
363
  } else {
364
- adminforth.alert({message: t('Error creating sign-in request.'), variant: 'warning'});
365
- codeError.value = t('Error creating sign-in request.');
364
+ adminforth.alert({message: t('Error creating sign-in request.'), variant: 'danger'});
365
+ codeError.value = 'Error creating sign-in request.';
366
366
  }
367
367
  }
368
368
 
@@ -400,7 +400,7 @@
400
400
  codeError.value = t('A previous passkey attempt was still pending. Please try again.');
401
401
  return null;
402
402
  } else if (name === 'NotAllowedError') {
403
- adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: 'warning' });
403
+ adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: 'danger' });
404
404
  codeError.value = t('The operation either timed out or was not allowed.');
405
405
  return null;
406
406
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",