Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@accounts/server

Package Overview
Dependencies
Maintainers
3
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/server - npm Package Compare versions

Comparing version 1.0.0-alpha-20231115113719-ae2b53a9 to 1.0.0-alpha-20231115205645-aa630d56

1

lib/accounts-server.d.ts

@@ -9,2 +9,3 @@ import * as jwt from 'jsonwebtoken';

declare const defaultOptions: {
enableAutologin: boolean;
micro: boolean;

@@ -11,0 +12,0 @@ ambiguousErrorMessages: boolean;

5

lib/accounts-server.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc