Skip to main content
Check out our end-to-end guide on how to implement push verification using Authsignal.

Start a push challenge

Start a push challenge by sending a notification to the user’s mobile device.
const response = await authsignal.push.challenge();

Parameters

action
string
The action being performed.

Response

response
AuthsignalResponse<PushChallengeResponse>
data
PushChallengeResponse

Check push challenge verification status

const response = await authsignal.push.verify({
  challengeId: "3a991a14-690c-492b-a5e5-02b9056a4b7d",
});

Parameters

challengeId
string
The ID of the Authsignal challenge returned when starting the push challenge.

Response

response
AuthsignalResponse<PushVerifyResponse>
data
PushVerifyResponse