Last updated
Last updated
Required Class: Signature Class
Smile ID requires you to send a unique signature and timestamp with every job you run. Although running jobs using any of our libraries will automatically calculate the signature, there might be instances you want to run a job using our REST API or generate signatures. In such instances you can use the sample code below to calculate a signature:
The response will be a hash:
To ensure the response you receive from your callback is actually from Smile ID, you can confirm the returned signature and timestamp. You can use the sample code below to confirm the signature:
The response will be a boolean