# RhinoAccountsManager class

Namespace: [Rhino.Runtime.RhinoAccounts](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.runtime.rhinoaccounts.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public static class RhinoAccountsManager
```

Performs various Rhino Accounts-related tasks.

## Methods

- [ExecuteProtectedCode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.rhinoaccountsmanager/executeprotectedcode.md): (static) Any synchronous method in the [IRhinoAccountsManager](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.irhinoaccountsmanager.md) class must be executed within the function passed to this method, or an [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) will be thrown.
- [ExecuteProtectedCodeAsync](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.rhinoaccountsmanager/executeprotectedcodeasync.md): (static) Any asynchronous method in the [IRhinoAccountsManager](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.irhinoaccountsmanager.md) class must be executed within the function passed to this method, or an [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) will be thrown.
- [GetAuthTokensAsync](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.rhinoaccountsmanager/getauthtokensasync.md): (2 overloads, static) Asynchronously retrieves auth tokens with the given criteria from the Rhino Accounts server.
- [RevokeAuthTokenAsync](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.rhinoaccountsmanager/revokeauthtokenasync.md): (static) Invalidates/revokes an [IOAuth2Token](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.ioauth2token.md) object from the Rhino Accounts server.
- [TryGetAuthTokens](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.rhinoaccountsmanager/trygetauthtokens.md): (2 overloads, static) Attempts to return cached auth tokens that match the given criteria if any have been stored in cache.
- [UpdateOpenIDConnectTokenAsync](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.rhinoaccountsmanager/updateopenidconnecttokenasync.md): (static) Updates an OpenID Connect token so that it contains the latest user information by contacting the Rhino Account's server userinfo endpoint using a compatible O
