On class "TrustedPersistantOAuth2Session" this code is used to clear tokens
public func clearTokens() {
|
self.accessToken = nil
|
self.refreshToken = nil
|
self.accessTokenExpirationDate = nil
|
self.refreshTokenExpirationDate = nil
|
}
|
The problem is that nil is never taken since code inside accessToken disallow it
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)
|
}
|
}
|
}
|
Because of this, is not possible to revoke a token
// Some comments here
|
public String getFoo()
|
{
|
return foo;
|
}
|
|