Skip to content

Commit 7714233

Browse files
committed
never delete refresh token when refreshing
Otherwise this may cause any error or loss of connectivity leading to refresh token deletion. There is a pending PR on the main repo p2#281 Related to sensational/popscan-android#977
1 parent 6bfd37e commit 7714233

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/Flows/OAuth2.swift

-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ open class OAuth2: OAuth2Base {
374374
let data = try response.responseData()
375375
let json = try self.parseRefreshTokenResponseData(data)
376376
if response.response.statusCode >= 400 {
377-
self.clientConfig.refreshToken = nil
378377
throw OAuth2Error.generic("Failed with status \(response.response.statusCode)")
379378
}
380379
self.logger?.debug("OAuth2", msg: "Did use refresh token for access token [\(nil != self.clientConfig.accessToken)]")

0 commit comments

Comments
 (0)