signInWith method
- Credentials credentials
Authorizes the current Session from the provided credentials.
Implementation
@visibleForTesting
Future<void> signInWith(Credentials credentials) async {
Log.debug('signInWith(credentials)', '$runtimeType');
// Check if the [credentials] are valid.
credentials = await _authRepository.refreshSession(
credentials.refresh.secret,
);
status.value = RxStatus.loadingMore();
await WebUtils.protect(() async {
if (isClosed) {
return;
}
await _authorized(credentials);
status.value = RxStatus.success();
});
}