For Babelfish Release 1.12.3.10

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.12.3.10+306d87ab71d1aa659d07c082495f8eddb091ca7b
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