Commit e94e5efa authored by Jose Blaya's avatar Jose Blaya
Browse files

Only refresh if logged

parent f0a8a8b8
......@@ -15,6 +15,10 @@ private let log = SwiftyBeaver.self
extension AccountProvider {
func refreshAndLogoutUnauthorized(force: Bool = false) {
guard self.isLoggedIn else {
return
}
let migrationDone = Client.preferences.authMigrationSuccess
var forceRefreshToken = force
if migrationDone != true {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment