For Babelfish Release 1.11.1.3

UserAuthenticationRefreshTokensAsync Method

Attempts to refresh the user's cognito tokens. Invokes the RefreshTokensSuccessful when the tokens are refreshed. Invoked the RefreshTokensFailed when a failure happens (and then throws one of the Exceptions).

Definition

Namespace: Scopos.BabelFish.Runtime.Authentication
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public Task RefreshTokensAsync(
	bool refreshNow = false
)

Parameters

refreshNow  Boolean  (Optional)
 

Return Value

Task

Exceptions

AuthenticationExceptionThrown if the user could not be re-authenticated.
ScoposExceptionThrown if, not sure why, but maybe a networking issue preventing the re-authentication.
InitializeAsyncNotCompletedExceptionThrown if InitializeAsync() was not called after calling the UserAuthentication constructor.

See Also