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

supertokens-website

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supertokens-website - npm Package Compare versions

Comparing version 13.1.0 to 13.1.1

4

CHANGELOG.md

@@ -10,2 +10,6 @@ # Changelog

## [13.1.1] - 2022-10-14
- Removed default max age from claims
## [13.1.0] - 2022-09-14

@@ -12,0 +16,0 @@ ### Added

10

lib/build/claims/primitiveArrayClaim.d.ts

@@ -10,3 +10,3 @@ import { SessionClaimValidator } from "../types";

readonly refresh: SessionClaimValidator["refresh"];
readonly defaultMaxAgeInSeconds: number;
readonly defaultMaxAgeInSeconds: number | undefined;
constructor(config: PrimitiveArrayClaimConfig);

@@ -16,7 +16,7 @@ getValueFromPayload(payload: any, _userContext?: any): ValueType[];

validators: {
includes: (val: ValueType, maxAgeInSeconds?: number, id?: string) => SessionClaimValidator;
excludes: (val: ValueType, maxAgeInSeconds?: number, id?: string) => SessionClaimValidator;
includesAll: (val: ValueType[], maxAgeInSeconds?: number, id?: string) => SessionClaimValidator;
excludesAll: (val: ValueType[], maxAgeInSeconds?: number, id?: string) => SessionClaimValidator;
includes: (val: ValueType, maxAgeInSeconds?: number | undefined, id?: string) => SessionClaimValidator;
excludes: (val: ValueType, maxAgeInSeconds?: number | undefined, id?: string) => SessionClaimValidator;
includesAll: (val: ValueType[], maxAgeInSeconds?: number | undefined, id?: string) => SessionClaimValidator;
excludesAll: (val: ValueType[], maxAgeInSeconds?: number | undefined, id?: string) => SessionClaimValidator;
};
}

@@ -416,3 +416,3 @@ "use strict";

this.refresh = config.refresh;
this.defaultMaxAgeInSeconds = config.defaultMaxAgeInSeconds === undefined ? 300 : config.defaultMaxAgeInSeconds;
this.defaultMaxAgeInSeconds = config.defaultMaxAgeInSeconds;
}

@@ -419,0 +419,0 @@ PrimitiveArrayClaim.prototype.getValueFromPayload = function(payload, _userContext) {

@@ -10,3 +10,3 @@ import { SessionClaimValidator } from "../types";

readonly refresh: SessionClaimValidator["refresh"];
readonly defaultMaxAgeInSeconds: number;
readonly defaultMaxAgeInSeconds: number | undefined;
constructor(config: PrimitiveClaimConfig);

@@ -16,4 +16,4 @@ getValueFromPayload(payload: any, _userContext?: any): ValueType;

validators: {
hasValue: (val: ValueType, maxAgeInSeconds?: number, id?: string) => SessionClaimValidator;
hasValue: (val: ValueType, maxAgeInSeconds?: number | undefined, id?: string) => SessionClaimValidator;
};
}

@@ -21,3 +21,3 @@ "use strict";

// We know payload[this.id] is defined since the value is not undefined in this branch
payload[_this.id].t < Date.now() - maxAgeInSeconds * 1000
(maxAgeInSeconds !== undefined && payload[_this.id].t < Date.now() - maxAgeInSeconds * 1000)
);

@@ -57,3 +57,3 @@ },

this.refresh = config.refresh;
this.defaultMaxAgeInSeconds = config.defaultMaxAgeInSeconds === undefined ? 300 : config.defaultMaxAgeInSeconds;
this.defaultMaxAgeInSeconds = config.defaultMaxAgeInSeconds;
}

@@ -60,0 +60,0 @@ PrimitiveClaim.prototype.getValueFromPayload = function(payload, _userContext) {

@@ -1,2 +0,2 @@

export declare const package_version = "13.1.0";
export declare const package_version = "13.1.1";
export declare const supported_fdi: string[];

@@ -18,3 +18,3 @@ "use strict";

*/
exports.package_version = "13.1.0";
exports.package_version = "13.1.1";
exports.supported_fdi = ["1.8", "1.9", "1.10", "1.11", "1.12", "1.13", "1.14", "1.15"];
{
"name": "supertokens-website",
"version": "13.1.0",
"version": "13.1.1",
"description": "frontend sdk for website to be used for auth solution.",

@@ -5,0 +5,0 @@ "main": "index.js",

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