You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if let token = sb.unarchive(objectForKey: "token") as? String {
.. if correct token segue to logged in screen
} else{
segue to non-logged in screen
}
I have a issue while using strongbox when launching my app for the first time. When there is no token found, I cannot segue to another screen. The problem is not that the segue is not initiated (I even override the prepare(for segue ..) function and code inside this is even executed. The next viewcontroller however is never displayed.
This problem is solved when I manually add a valid token, or when I add a random string (E.G. " " ) to the archive.
How can I resolve this issue?
The text was updated successfully, but these errors were encountered:
Can you post the complete if/else code? If the only thing that is different is that there is something in the archive for the key, then perhaps there is something about the code in the "then" block that is different than the "else" block. Is everything correctly setup in your storyboard to allow the "else" block code to work? What happens when things don't work? Does the app crash, or does it simply not show the screen you are expecting to see (from the "else" block)? The Strongbox code is pretty simple and it is hard to imagine that the absence of a value in the keychain would prevent the UI from doing it's thing normally.
I have a issue while using strongbox when launching my app for the first time. When there is no token found, I cannot segue to another screen. The problem is not that the segue is not initiated (I even override the prepare(for segue ..) function and code inside this is even executed. The next viewcontroller however is never displayed.
This problem is solved when I manually add a valid token, or when I add a random string (E.G. " " ) to the archive.
How can I resolve this issue?
The text was updated successfully, but these errors were encountered: