Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use Authsignal’s server-side SDK methods for actions.
const request = { userId: "dc58c6dc-a1fd-4a4f-8e2f-846636dd4833", action: "signIn", attributes: { redirectUrl: "https://yourapp.com/callback", }, }; const response = await authsignal.track(request); if (response.state === "CHALLENGE_REQUIRED") { // Present challenge via Authsignal pre-built UI URL const url = response.url; } else if (response.state === "ALLOW") { // Allow the user to sign in } else if (response.state === "BLOCK") { // Block the user from signing in }
const request = { userId: "dc58c6dc-a1fd-4a4f-8e2f-846636dd4833", action: "signIn", idempotencyKey: "83d07321-9bba-4f08-a871-02e2af813b72", }; const response = await authsignal.getAction(request);
const request = { userId: "dc58c6dc-a1fd-4a4f-8e2f-846636dd4833", // Optional filters codes: "signIn,withdrawFunds", // Comma-separated list of action codes fromDate: "2024-01-01T00:00:00Z", // ISO 8601 format }; const actions = await authsignal.queryActions(request);
const request = { userId: "dc58c6dc-a1fd-4a4f-8e2f-846636dd4833", action: "signIn", idempotencyKey: "83d07321-9bba-4f08-a871-02e2af813b72", attributes: { state: "REVIEW_REQUIRED", }, }; const updatedAttributes = await authsignal.updateAction(request);
Was this page helpful?