1

As the token will get expired in one hour and we need to fetch new token, I want to know will be allocating cumstomIdentityProvider class again or thers is another ay of doing that. Need help.

This is i have implemented in My cumstomIdentityProvider.

- (AWSTask *)refresh {
    /*
     * Get the identityId and token by making a call to your backend
     */
    // Call to your backend

    // Set the identity id and token
    self.identityId = IdentityId;
    self.token = Token;
    return [AWSTask taskWithResult:self.identityId];
}
Bannings
  • 10,376
  • 7
  • 44
  • 54
user1068810
  • 387
  • 2
  • 6
  • 14

0 Answers0