# IRhinoAccountsManager interface

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 interface IRhinoAccountsManager
```

Performs various Rhino Accounts-related tasks.

## Methods

- [ExecuteProtectedCode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.irhinoaccountsmanager/executeprotectedcode.md): 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.irhinoaccountsmanager/executeprotectedcodeasync.md): 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.irhinoaccountsmanager/getauthtokensasync.md): (2 overloads) Asynchronously retrieves auth tokens with the given criteria from the Rhino Accounts server.
- [RevokeAuthTokenAsync](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.rhinoaccounts.irhinoaccountsmanager/revokeauthtokenasync.md): 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.irhinoaccountsmanager/trygetauthtokens.md): (2 overloads) 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.irhinoaccountsmanager/updateopenidconnecttokenasync.md): 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
