Retrieve the user's OpenID Connect identity token for the current Posit Workbench session, if any. This token can be used to authenticate with services that trust Workbench's identity provider.
getIdentityToken()A list containing:
The identity token string.
The token expiry time as a POSIXct datetime object.
Throws an error if the token cannot be retrieved.
This function works for any IDE running within a Posit Workbench session, not just RStudio.