
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
supertokens-web-js
Advanced tools
This is a plain Javascript SDK that provides the login functionality with SuperTokens.
Learn more at https://supertokens.com
To see documentation, please click here.
Please refer to the CONTRIBUTING.md file in this repo.
For any queries, or support requests, please email us at team@supertokens.com, or join our Discord server.
Created with :heart: by the folks at SuperTokens.com.
[0.7.0] - 2023-07-19
getTenantIdFromURL
to multiple recipesclientType
config in the input for SuperTokens.init
function, that is used by thirdparty and multitenancy recipes.getAuthorisationURLWithQueryParamsAndSetState
setStateAndOtherInfoToStorage
, getAuthorisationURLFromBackend
, generateStateToSendToOAuthProvider
, verifyAndGetStateOrThrowError
, getAuthCodeFromURL
, getAuthErrorFromURL
, getAuthStateFromURL
getAuthorisationURLWithQueryParamsAndSetState
setStateAndOtherInfoToStorage
, getAuthorisationURLFromBackend
, generateStateToSendToOAuthProvider
, verifyAndGetStateOrThrowError
, getAuthCodeFromURL
, getAuthErrorFromURL
, getAuthStateFromURL
getThirdPartyAuthorisationURLWithQueryParamsAndSetState
setThirdPartyStateAndOtherInfoToStorage
, getAuthorisationURLFromBackend
, generateThirdPartyStateToSendToOAuthProvider
, verifyAndGetThirdPartyStateOrThrowError
, getThirdPartyAuthCodeFromURL
, getThirdPartyAuthErrorFromURL
, getThirdPartyAuthStateFromURL
getAuthorisationURLWithQueryParamsAndSetState
Before:
const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
providerId: "google",
authorisationURL: `${websiteDomain}/auth/callback/google`,
});
After:
const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
thirdPartyId: "google",
frontendRedirectURI: `${websiteDomain}/auth/callback/google`,
});
Before:
const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
providerId: "apple",
authorisationURL: `${websiteDomain}/auth/callback/apple`,
});
After:
const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
thirdPartyId: "apple",
frontendRedirectURI: `${websiteDomain}/auth/callback/apple`,
redirectURIOnProviderDashboard: `${apiDomain}/auth/callback/apple`
});
FAQs
SuperTokens SDK for vanilla JS for all recipes
The npm package supertokens-web-js receives a total of 23,543 weekly downloads. As such, supertokens-web-js popularity was classified as popular.
We found that supertokens-web-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.