From 16fb0a2deb6dafc34034978ce1ab1bc6a91c3ad7 Mon Sep 17 00:00:00 2001 From: Ishan Gulhane <26394621+ishangulhane@users.noreply.github.com> Date: Tue, 19 Jun 2018 14:51:53 -0500 Subject: [PATCH] Fix refreshToken bug (#150) * fix version update bug (#146) * fix refreshtoken bug --- Source/IBMCloudAppID/internal/TokenManager.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/IBMCloudAppID/internal/TokenManager.swift b/Source/IBMCloudAppID/internal/TokenManager.swift index 320e0cf..1c61b0d 100644 --- a/Source/IBMCloudAppID/internal/TokenManager.swift +++ b/Source/IBMCloudAppID/internal/TokenManager.swift @@ -175,6 +175,7 @@ internal class TokenManager { self.validateToken(token: identityToken, tokenResponseDelegate: tokenResponseDelegate) { self.latestAccessToken = accessToken self.latestIdentityToken = identityToken + self.latestRefreshToken = nil if let refreshTokenString = responseJson["refresh_token"] as? String { self.latestRefreshToken = RefreshTokenImpl(with: refreshTokenString) }