Skip to main content

API Reference - Python

LoginID Class#

Constructor#

This server SDK leverages either a web or mobile application and requires an API credential to be assigned to that integration.

Helper Functions#

generateServiceToken#

Generate a service token, to be used when making protected API calls. Not required when calling other methods with the server SDK.

verifyToken#

Verify a JWT returned upon user authentication.


Code Related Functions#

generateCode#

Generate a code, which can be used for a variety of purposes. Check out the guides section for how various ways these codes can be used.

authorizeCode#

Authorize a code which was previously generated through the generateCode method.

waitCode#

Submit a code and wait for it to be authorized. You can use this method when leveraging the code to authenticate a user.

invalidateAllCodes#

Invalidate all codes of a given type for a specific user.


Transaction Confirmation Related Functions#

generateTxAuthToken#

Generates the bearer token to be used in the transaction confirmation flow, as it has a specific format slightly different from the standard service tokens. This function generates that token. If calling the createTxId method, this function does not need to be called first.

createTxId#

Create a transaction ID. This is typically the first step of the transaction confirmation flow.

verifyTransaction#

Verify the jwt returned in the confirmTransaction flow.