Check out our end-to-end guide on how to implement app verification with push
notifications.
Adding a credential
Adding a push credential generates a private/public key pair, where the private key is secured on the user’s mobile device and the public key is held by Authsignal. This operation must be authorized with a short-lived token, which can be obtained by tracking an action from your backend in an authenticated context.Parameters
A short-lived token obtained by tracking an
action.
Response
Getting a credential
Get information about the push credential stored on the device, if one exists.Response
Removing a credential
Response
Getting a challenge
Response
Updating a challenge
After presenting the user with a prompt to approve or reject the request, you should update the challenge with their response.Response
Requiring user authentication
When adding a credential for push verification, it is possible to require that the user authenticate via their OS biometrics or PIN whenever they access the credential (e.g. when approving or rejecting a challenge).iOS
To require user authentication on iOS, set theuserPresenceRequired flag to true when adding the credential.
Android
To require user authentication on Android, set theuserAuthenticationRequired flag to true when adding the credential.
timeout param determines the time (in seconds) that the credential can be accessed after authenticating - or 0 if authentication must occur for every credential use.
The authorizationType param determines if authentication is required via biometrics and/or device credential (e.g. pin).
If user authentication is required for a credential, you must call updateChallenge in a biometric prompt authentication callback.
- Initialize a signature before displaying the biometric prompt
- Retrieve the signature from the crypto object in your prompt’s authentication callback

