On class "TrustedPersistantOAuth2Session" this code is used to clear tokens
{code:java} public func clearTokens() { self.accessToken = nil self.refreshToken = nil self.accessTokenExpirationDate = nil self.refreshTokenExpirationDate = nil } {code}
The problem is that nil is never taken since code inside accessToken properties disallow it . For example:
{code:java} public var accessToken: String? { get { return self.keychain.read(self.accountId, tokenType: .AccessToken) } set(value) { if let unwrappedValue = value { self.keychain.save(self.accountId, tokenType: .AccessToken, value: unwrappedValue) } } } {code}
Because of this, is not possible to revoke a token {code:java} // Some comments here public String getFoo() { return foo; } {code}
|