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 Versions

23
13

20.1.5

Diff

Changelog

Source

[20.1.5] - 2024-10-03

Changes

  • Added 3.1 and 4.0 to the list of supported FDIs
  • Now we throw and log an error if a successful refresh response doesn't have the front-token header. This used to break the session state.
supertokens
published 20.1.4 •

Changelog

Source

[20.1.4] - 2024-07-11

Changes

  • Removed redundant removeToken calls
  • Improves test stability
supertokens
published 20.1.3 •

Changelog

Source

[20.1.3] - 2024-07-09

  • Adds new test
supertokens
published 20.1.2 •

Changelog

Source

[20.1.2] - 2024-06-26

Changes

  • Fixed a session refresh loop caused by blocked cookie writes. The SDK would throw/log a helpful error message when this happens.
supertokens
published 20.1.1 •

Changelog

Source

[20.1.1] - 2024-06-13

Changes

  • Added a warning if the SDK can't save to cookies to help people notice/debug these issues faster.

Fixes

  • Fixed an issue in the Axios interceptor that caused it to throw when encountering a network error
supertokens
published 20.1.0 •

Changelog

Source

[20.1.0] - 2024-05-31

Changes

  • Fixed the session refresh loop in all the request interceptors that occurred when an API returned a 401 response despite a valid session. Interceptors now attempt to refresh the session a maximum of ten times before throwing an error. The retry limit is configurable via the maxRetryAttemptsForSessionRefresh option.
supertokens
published 20.0.1 •

Changelog

Source

[20.0.1] - 2024-05-24

Changes

  • Added 2.0 and 3.0 to supported FDIs
  • Now we use the locking to make sure that refreshing claims happens only once even for concurrent validateClaims calls
    • The locking mechanism is configurable through by providing a lockFactory function in the configuration
supertokens
published 20.0.0 •

Changelog

Source

[20.0.0] - 2024-04-03

Breaking changes

The shouldDoInterceptionBasedOnUrl function now returns true:

  • If sessionTokenBackendDomain is a valid subdomain of the URL's domain. This aligns with the behavior of browsers when sending cookies to subdomains.
  • Even if the ports of the URL you are querying are different compared to the apiDomain's port ot the sessionTokenBackendDomain port (as long as the hostname is the same, or a subdomain of the sessionTokenBackendDomain): https://github.com/supertokens/supertokens-website/issues/217

Before:

  shouldDoInterceptionBasedOnUrl("https://sub.api.example.com", "", "api.example.com") // false
  shouldDoInterceptionBasedOnUrl("https://sub.api.example.com", "", ".api.example.com") // true
  shouldDoInterceptionBasedOnUrl("https://sub.api.example.com", "", "example.com") // false
  shouldDoInterceptionBasedOnUrl("https://sub.api.example.com", "", ".example.com") // true
  shouldDoInterceptionBasedOnUrl("https://api.example.com", "", ".example.com:8080") // false
  shouldDoInterceptionBasedOnUrl("https://api.example.com", "https://example.com:8080") // false

After:

  shouldDoInterceptionBasedOnUrl("https://sub.api.example.com", "", "api.example.com") // true
  shouldDoInterceptionBasedOnUrl("https://sub.api.example.com", "", ".api.example.com") // true
  shouldDoInterceptionBasedOnUrl("https://sub.api.example.com", "", "example.com") // true
  shouldDoInterceptionBasedOnUrl("https://sub.api.example.com", "", ".example.com") // true
  shouldDoInterceptionBasedOnUrl("https://api.example.com", "", ".example.com:8080") // true
  shouldDoInterceptionBasedOnUrl("https://api.example.com", "https://example.com:8080") // true
supertokens
published 19.0.1 •

Changelog

Source

[19.0.1] - 2024-03-18

  • Fixes test server
supertokens
published 19.0.0 •

Changelog

Source

[19.0.0] - 2024-03-14

Breaking changes

  • Rename validatorId in claim validation errors to id to match the backend SDKs

Changes

  • Added 1.19 to the list of supported FDIs
23
13
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