Use this method to generate a token request for users. Each user is authenticated by the ID token that is generated for the given clientId and clientSecret.
By default the authentication token is only valid for an hour. expiresIn shows the amount of seconds the session is alive for. Use the refresh token which is valid for 24 hours to create a new authentication token after the previous one expires.
To create authentication token:
grantType = authorization_code
To create refresh token:
refresh_token=<refresh_token generated by authentication method>