Skip to content

Error while handling nonexisting token  #12

@hackjedi

Description

@hackjedi
 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions