Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Delete keychain if first launch #8

Description

@Alix-MICHEL

It would be nice if network stack could delete automatically the keychain after the app's first launch, based on a user defaults key.

let alreadyLaunched = Defaults[.alreadyLaunched]

if alreadyLaunched == false || alreadyLaunched == nil {
  do {
    try KeychainService(serviceType: KeychainServiceType.sbwa.rawValue).removeAll()
    Defaults[.alreadyLaunched] = true
  } catch {
    print("KeychainService: Failed to remove all keys")
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions