create_auth_hash
To create an authorization hash, use the core/create_auth_hash method.
The combination of the core/create_auth_hash and core/use_auth_hash methods can be used instead of the core/duplicate method.
svc=core/create_auth_hash¶ms={}
The generated hash is valid within 2 minutes from the moment of its creation.
Response
If the request is completed successfully, a response of the following format is returned:
{
"authHash": <text> /* Authorization hash value. */
}
If the request fails, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 1 | Failed to fetch the current user. |
| 7 | Failed to check the top level access to the token or failed to access the SDK package. |
| 9 | Failed to generate the authorization hash. |