The Credentials widget delivered via the Truework.js CDN.
Initializes the Credentials widget.
|string||Public publishable key associated with this instance of our Credentials widget|
|string||Private token representing the existing CredentialsSession created using our authenticated API|
|Env||Optional environment the session should be initialized in — defaults to |
|Opens the modal|
|Closes the modal|
|Takes a callback function to be called after the modal is opened|
|Takes a callback function to be called after the modal is closed|
|Takes a callback function to be called on completion|
|Takes a callback function to be called after an error. Receives an ErrorCode object.|
Enum for available environments you can use to initialize a session.
Error objects obscure the root cause to prevent PII leakage, and have the following shape:
|Critical||Widget closes, calls |
|Error||Widget remains open, calls |