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

supertokens-web-js

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supertokens-web-js - npm Package Versions

124

0.2.2

Diff

supertokens
published 0.2.1 •

Changelog

Source

[0.2.1] - 2022-09-14

Changes

  • Fix type of parameter for Passwordless.consumeCode
supertokens
published 0.2.0 •

Changelog

Source

[0.2.0] - 2022-09-14

Added

  • Session claims related types/classes and the validateClaims & getClaimValue functions
  • Added getInvalidClaimsFromResponse to the SessionClass to help parsing responses with invalid claim errors
  • Added API_INVALID_CLAIM event to the Session recipe
  • Added UserRoleClaim and PermissionClaim

Breaking changes

  • Only supporting FDI 1.15
  • Backend SDKs have to be updated first to a version that supports session claims before enabling EmailVerification!
    • supertokens-node: >= 12.0
    • supertokens-golang: >= 0.9
    • supertokens-python >= 0.11
  • EmailVerification recipe is now not initialized as part of auth recipes. You can add it to the recipe list as EmailVerification.init like other recipes.
  • Removed verifyEmail, sendVerificationEmail and isEmailVerified from auth recipes. These should now be called on the EmailVerification recipe
  • Moved email verification related events, overrides, pre-api hooks and redirection contexts into the EmailVerification recipe. You should configure them while initializing the EmailVerification recipe.
  • Fix typing of consumeCode in the passwordless recipe

Migration

EmailVerification recipe init
SuperTokens.init({
    // Normal init conf...
    recipeList: [
        EmailPassword.init({
            preAPIHook: (context) => {
                // Move email verification related pre-API hooks into the preAPIHook of the EmailVerification config
            },
            postAPIHook: (context) => {
                // Move email verification related post-API hooks into the postAPIHook of the EmailVerification config
            }
            override: {
                emailVerificationFeature: {
                    // These overrides should be moved into the config of the EmailVerification recipe
                }
            }
        }),
    ]
})

Should become:

SuperTokens.init({
    // Normal init conf...
    recipeList: [
        EmailVerification.init({
            // Props from emailVerificationFeature of the EmailPassword.init config should be moved here.
            override: {
                // The overrides from emailVerificationFeature in the overrides of the EmailPassword config should be moved here
            },

            preAPIHook: (context) => {
                // Move email verification related pre-API hooks here
            },
            postAPIHook: (context) => {
                // Move email verification related post-API hooks here
            },
        }),
        EmailPassword.init({}),
    ],
});
supertokens
published 0.1.6 •

Changelog

Source

[0.1.6] - 2022-08-23

Changed

  • Makes the input argument for consumePasswordlessCode in ThirdPartyPasswordless optional.
supertokens
published 0.1.5 •

Changelog

Source

[0.1.5] - 2022-08-11

Changed

  • Refactors the way the SDK exports recipe functions and utilities
supertokens
published 0.1.4 •

Changelog

Source

[0.1.4] - 2022-07-30

  • Corrects error message thrown from ThirdParty recipe if its init function is not called.
supertokens
published 0.1.3 •

Changelog

Source

[0.1.3] - 2022-07-18

Bug fixes

  • Fixes an issue with webpack configuration that resulted in custom window and cookie handlers to not get initialised correctly
supertokens
published 0.1.2 •

Changelog

Source

[0.1.2] - 2022-07-06

Bug Fixes

  • Fixes an issue where Passwordless.consumeCode was not honoring the API spec
supertokens
published 0.1.1 •

Changelog

Source

[0.1.1] - 2022-06-27

  • Updates supertokens-website dependency to reflect change in cookieHandler interface
supertokens
published 0.1.0 •

Changelog

Source

[0.1.0] - 2022-06-22

Adds

  • New FDI support (1.14)

Breaking Changes

  • Removes setCookieSync and getCookieSync from the interface for cookieHandler when calling SuperTokens.init
  • Updates dependency version for supertokens website to support General Error handling
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