Local Realm open after synchronized on realm cloud

I’m check if currentUser exists in cache, if true i call Realm.open(config), else call login.
With my cloud instance offline, i know login will not authenticate, but if im already have an user authenticated in cache with currentUser, when i call Realm.open i get auth error, because i cant make a request to it, but if i turn off the internet, i can connect locally with new Realm(config)

am i doing something wrong?
thanks for responding and for being patient