device_code
and the user_code
, it should
instruct the user to go to the verification_uri
and enter the user_code
.device_code
is not intended for the user directly and should not be displayed during
the interaction to avoid confusing the user.verification_uri_complete
.interval
(in seconds) or until
it receives a successful response, whichever is longer, to avoid network latency issues.openid
scope) or the API that was specified by the audience
parameter. If you are calling your own API, your device application must verify the access token before using it.ID tokens contain user information that must be decoded and extracted. The Authentication API
only returns an id_token
if your device application requested the openid
scope.Refresh tokens are used to obtain a new access token or
ID token after the previous one has expired. The Authentication API only returns a refresh_token
if
the Allow Offline Access setting is enabled for the API specified by the audience
parameter,
and your device application requested the offline_access
scope.Authorization
header of your HTTP request.refresh_token
parameter.interval
retrieved in the previous step of this tutorial.device_code
has expired. Your
application should notify the user that the flow has expired and prompt them to reinitiate the flow.expired_token
error is returned exactly once. After that, the endpoint returns the
invalid_grant
error.