getIdentityToken

Returns JWT from Erply identity for the current session. This can be used to authenticate with various Erply services that require a JWT.

A session is connected to a single JWT. When one does not exist for the session then a new one will be created with the same lifetime as the session.

A single JWT can be connected to multiple sessions - this means the returned JWT does not always have the same lifetime as the session (lifetime of the JWT is connected to the session that created it initially - use verifyIdentityToken to get that session).

To switch a JWT to session or to get the session that has the same lifetime as the token then use verifyIdentityToken.

Here is the intended use case explained in more detail.

Response

Field name Type Description
identityToken string Identity token from Erply identity that is connected to this session.