Skip to content

Commit

Permalink
Document the closed field in OTP status.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Apr 11, 2023
1 parent 0a3f389 commit ed88824
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ or an error such as
{ "status": "error", "message": "OTP not verified" }
```

The `closed` field indicates whether the OTP has been validated by the user and has been "closed".

# Javascript plugin

The gateway comes with a Javascript plugin that enables easy integration of the verification UI into existing applications. Once a server side call to generate an OTP is made and a namespace and id are obtained, calling `OTPGateway()` opens the verification UI in a modal popup. Upon completion of verification by the user, a callback is triggered.
Expand Down

0 comments on commit ed88824

Please sign in to comment.