
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
xumm-oauth2-pkce
Advanced tools
Xumm JS SDK for client side only OAuth2 PKCE (implicit flow) auth.
Xumm JS SDK for client side only OAuth2 PKCE (Authorization Code flow) auth
Questions? https://xumm.readme.io/discuss
Demo? https://oauth2-pkce-demo.xumm.dev
NPM: https://www.npmjs.com/package/xumm-oauth2-pkce
new XummPkce('api-key-uuidv4', { options })
interface XummPkceOptions {
redirectUrl: string; // Defaults to `document.location.href`, e.g. to add state params.
rememberJwt: boolean; // Defaults to `true`
storage: Storage; // Defaults to window.localStorage
implicit: boolean; // Defaults to `false`, `true` allows x-browser sign in, but it less secure
}
Please note: please use the Event based sample (above) if possible: this is more compatible with future releases than the promise-based (await/async) method as displayed below.
success
= User signed in successfully, sdk.state()
returns .me
and .sdk
objectsretrieved
= Retrieved existing session after e.g. browser refresh or mobile redirect, sdk.state()
returns .me
and .sdk
objectserror
= Error, expected (e.g. user cancelled) or unexpected (...), returns argument error
with an Error()
object, sdk.state()
returns nullconst xumm = new XummPkce("uuid-uuid-uuid-uuid");
const xummSignInHandler = (state) => {
if (state.me) {
const { sdk, me } = state;
console.log("state", me);
// Also: sdk » xumm-sdk (npm)
}
};
// To pick up on mobile client redirects:
xumm.on("retrieved", async () => {
console.log("Retrieved: from localStorage or mobile browser redirect");
xummSignInHandler(await xumm.state());
});
// E.g. when clicking a button:
document.getElementById("somebutton").onclick = () => {
xumm.authorize().then((session) => {
xummSignInHandler(session);
});
};
A browserified version (latest) is available at JSDelivr & direclty from the xumm.app
domain:
<script src="https://xumm.app/assets/cdn/xumm-oauth2-pkce.min.js"></script>
FAQs
Xumm JS SDK for client side only OAuth2 PKCE (implicit flow) auth.
The npm package xumm-oauth2-pkce receives a total of 2,594 weekly downloads. As such, xumm-oauth2-pkce popularity was classified as popular.
We found that xumm-oauth2-pkce demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.