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.

Copied!
svc=core/create_auth_hash&params={}

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:

Copied!
{
    "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.

If you find a mistake in the text, please select it and press Ctrl+Enter.