getGuestAwsCredentialsId method

Future<void> getGuestAwsCredentialsId()

Implementation

Future<void> getGuestAwsCredentialsId() async {
  if (!(expireTime == null ||
      DateTime.now().millisecondsSinceEpoch > expireTime! - 60000)) {
    return;
  }

  final identityId = CognitoIdentityId(_identityPoolId, _pool);
  return _getAwsCredentials(identityId);
}