Signature
Required Class: Signature Class
Generating a Signature
Smile ID requires you to send a unique signature and timestamp with every job you conduct. Although running jobs using any of our libraries will automatically compute the signature, there may be occasions when you wish to execute a job using our REST API or generate signatures yourself. In such cases, you can use the sample code below to calculate a signature:
Response
The response will be in the form of a hash:
Confirming an Incoming Signature
To verify that the response you receive from your callback is genuinely from Smile ID, you can confirm the returned signature and timestamp. Use the sample code below to confirm the signature:
Response
The response will be a boolean:
Last updated