TokenResponseUnion

Description

An object containing all the possible fields from the response of a successful token request. Not all the fields will be available.

Model Properties

Property Required Type Description
access_token False string The bearer token you need to include on API calls. Please note the custom access tokens are not synchronized between HA pair. Custom access token generated from one node will not work on the peer node.
expires_in False integer The number of seconds for which the access token is valid from the time the token is issued.
token_type False string Always has the value of 'Bearer'.
refresh_token False string The token you would use on a refresh request.
refresh_expires_in False integer The number of seconds for which the refresh token is valid from the time the token is issued. This is always longer than the access token validity period.
status_code False integer The status code of the token response.
message False string The detailed message of the token response.