Skip to content

Commit

Permalink
Update also README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Feb 17, 2025
1 parent 3d452db commit 89f70ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generators/java/okhttp-gson/templates/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ import com.onfido.Configuration;

import com.onfido.ApiException;
import com.onfido.OnfidoInvalidSignatureError;
import com.google.gson.JsonParseException;
```

Instantiate and configure an `Onfido` instance with your API token, and region if necessary:
Expand Down Expand Up @@ -155,6 +156,8 @@ try {
WebhookEvent event = verifier.readPayload("{\"payload\":{\"r...3\"}}", signature);
} catch( OnfidoInvalidSignatureError e ) {
// Invalid webhook signature
} catch( JsonParseException e ) {
// Parsing exception
}
```

Expand Down

0 comments on commit 89f70ea

Please sign in to comment.