Authenticate
The Authenticate
class within the HyperMint SDK allows various interactions with your HyperMint authenticate app.
The easiest way to get started with the constructor is copy and paste the code snippet generated in "Developers" tab on the authenticate app page.
Constructor Options
Name | Type | Required | Description |
---|---|---|---|
appId | string | Y | The Id of the authenticate app, found in your dashboard |
enableLogging | boolean | N | Whether or not to show console logging. Useful for development. |
logger | LoggerFunction | N | Optional custom logging function. See below for function signature. Used when enableLogging = true |
Example Usage
<script src="https://hypermint.com/client-sdk/client-sdk-evm.js" type="application/javascript"></script>
// ...
const { Authenticate } = HyperMint;
const app = new Authenticate({
appId: '075f57a8-65dc-477e-9a8e-0ea19bbdbd52',
enableLogging: true
});
const jwt = await app.authenticate();
// Send JWT token to your server
enableLogging
is an optional parameters which prints logs to the console while developing. All logs start with HM and the name of the function they originated from.
Feedback
Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.
Updated 7 months ago
What’s Next