
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
@authsignal/react
Advanced tools
đźš§ Work in progress: Not intended for production use. đźš§
Add @authsignal/react to your package.json dependencies.
npm install @authsignal/react
yarn add @authsignal/react
Add the Authsignal component to your app. Generally, this should be placed at the root of your app.
import { Authsignal } from '@authsignal/react';
function App() {
return (
<div>
<Checkout />
<Authsignal tenantId="YOUR_TENANT_ID" baseUrl="YOUR_BASE_URL" />
</div>
);
}
Import the useAuthsignal hook in your component.
Then pass the challengeOptions returned from your server to the startChallenge function.
import { useAuthsignal } from '@authsignal/react';
export function Checkout() {
const { startChallenge } = useAuthsignal();
const handlePayment = async () => {
const response = await fetch('/api/payment', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
});
const data = await response.json();
if (data.challengeOptions) {
startChallenge({
...challengeOptions,
onChallengeSuccess: () => {
// Challenge was successful
},
onCancel: () => {
// User cancelled the challenge
},
onTokenExpired: () => {
// Token expired
},
});
}
};
return (
<div>
<button type="button" onClick={handlePayment}>Pay</button>
</div>
);
}
FAQs
React components for [Authsignal](https://authsignal.com).
The npm package @authsignal/react receives a total of 38 weekly downloads. As such, @authsignal/react popularity was classified as not popular.
We found that @authsignal/react 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.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.