Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenericPasswordSecureStorable and LocksmithAccessibleOption #168

Open
branko-vt opened this issue Jan 25, 2017 · 3 comments
Open

GenericPasswordSecureStorable and LocksmithAccessibleOption #168

branko-vt opened this issue Jan 25, 2017 · 3 comments

Comments

@branko-vt
Copy link

I made class that conforms GenericPasswordSecureStorable and every operation (read/write/save) works fine until I set var accessible: LocksmithAccessibleOption? {return .always} . After I set accessible I get duplicate error when try to create in secure store and notFound when try to delete from secure store. What's the issue here?

@shaljam
Copy link

shaljam commented Sep 2, 2017

Same problem here except that I'm using .whenUnlockedThisDeviceOnly option.

@shaljam
Copy link

shaljam commented Sep 2, 2017

I wasn't using accessible before and assuming default value of .whenUnlocked, I changed to .whenUnlocked, did deleteFromSecureStore() and then changed to .whenUnlockedThisDeviceOnly, and it worked.
So I think accessible affects createInSecureStore() and not deleteFromSecureStore().

@ghost
Copy link

ghost commented Feb 8, 2018

@shaljam : My app is already in app store with default value of .whenUnlocked option. Now I want to use .afterFirstUnlock. How should I do that. because as soon as I use var accessible: LocksmithAccessibleOption? {return .afterFirstUnlock} I'm not able to delete.
I tried making new account and service but that time also I got nil for readFromsecureStore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants