ApiKey
Learn how to provide the API key that authenticates your application.
This class represents the API key that authenticates your application with Croct. It optionally carries a private key used to sign user tokens when you identify visitors.
Provide it, or its serialized string, when you create the SDK.
Looking for something specific?
Use the search bar at the top of the page or press / to quickly search through the documentation.
Use the summary below to quickly jump to a specific topic:
| Page | Description |
|---|---|
| parse | Learn how to create an API key from its serialized string. |
| of | Learn how to create an API key from an identifier and a private key. |
| getIdentifier | Learn how to get the public identifier of the API key. |
| hasPrivateKey | Learn how to check whether the API key can sign user tokens. |