@accounts/server
Advanced tools
Comparing version 1.0.0-alpha-20231115113719-ae2b53a9 to 1.0.0-alpha-20231115205645-aa630d56
@@ -9,2 +9,3 @@ import * as jwt from 'jsonwebtoken'; | ||
declare const defaultOptions: { | ||
enableAutologin: boolean; | ||
micro: boolean; | ||
@@ -11,0 +12,0 @@ ambiguousErrorMessages: boolean; |
@@ -20,2 +20,3 @@ "use strict"; | ||
const defaultOptions = { | ||
enableAutologin: false, | ||
micro: false, | ||
@@ -59,6 +60,2 @@ ambiguousErrorMessages: true, | ||
} | ||
if (this.options.ambiguousErrorMessages && this.options.enableAutologin) { | ||
throw new Error(`Can't enable autologin when ambiguous error messages are enabled (https://www.accountsjs.com/docs/api/server/globals#ambiguouserrormessages). | ||
Please set ambiguousErrorMessages to false to be able to use autologin.`); | ||
} | ||
this.services = services || {}; | ||
@@ -65,0 +62,0 @@ for (const serviceName in this.services) { |
@@ -45,2 +45,4 @@ import * as jwt from 'jsonwebtoken'; | ||
* LoginResult data will be included into registration response. | ||
* Can be enabled only if requireEmailVerification is set to false. | ||
* Defaults to false. | ||
*/ | ||
@@ -47,0 +49,0 @@ enableAutologin?: boolean; |
{ | ||
"name": "@accounts/server", | ||
"version": "1.0.0-alpha-20231115113719-ae2b53a9", | ||
"version": "1.0.0-alpha-20231115205645-aa630d56", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -51,3 +51,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/types": "1.0.0-alpha-20231115113719-ae2b53a9", | ||
"@accounts/types": "1.0.0-alpha-20231115205645-aa630d56", | ||
"@types/jsonwebtoken": "9.0.5", | ||
@@ -54,0 +54,0 @@ "emittery": "0.13.1", |
@@ -46,2 +46,3 @@ import merge from 'lodash.merge'; | ||
const defaultOptions = { | ||
enableAutologin: false, | ||
micro: false, | ||
@@ -97,8 +98,2 @@ ambiguousErrorMessages: true, | ||
} | ||
if (this.options.ambiguousErrorMessages && this.options.enableAutologin) { | ||
throw new Error( | ||
`Can't enable autologin when ambiguous error messages are enabled (https://www.accountsjs.com/docs/api/server/globals#ambiguouserrormessages). | ||
Please set ambiguousErrorMessages to false to be able to use autologin.` | ||
); | ||
} | ||
@@ -105,0 +100,0 @@ this.services = services || {}; |
@@ -49,2 +49,4 @@ import * as jwt from 'jsonwebtoken'; | ||
* LoginResult data will be included into registration response. | ||
* Can be enabled only if requireEmailVerification is set to false. | ||
* Defaults to false. | ||
*/ | ||
@@ -51,0 +53,0 @@ enableAutologin?: boolean; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119375
2365
+ Added@accounts/types@1.0.0-alpha-20231115205645-aa630d56(transitive)
- Removed@accounts/types@1.0.0-alpha-20231115113719-ae2b53a9(transitive)