
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
An authentication session manager for OpenID Connect using PKCE.
The session manager will keep the user's session permanently active until they either explicitly logout, or the authentication server denies a refresh attempt.
access_token
as an event listener$ npm install pkce-spa
import { Session } from "pkce-spa";
const session = new Session({ ...config });
session.onChange((accessToken) => {
// Start the redirect flow if there isn't an active session
if (accessToken === null) session.login();
});
const Token = createContext();
function TokenProvider({ children }) {
const [token, setToken] = useState(null);
useEffect(() => session.onChange(setToken), []); // Will clean up effect automatically
return <Token.Provider value={token}>{children}</Token.Provider>;
}
See examples for more usage examples.
authorization_code
and refresh_token
grant types enablednone
FAQs
An authentication session manager for OpenID Connect using PKCE.
We found that pkce-spa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.