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

Is it possible to tell if secure storage is available before storing something? #168

Closed
John-Nagle opened this issue Apr 28, 2024 · 2 comments

Comments

@John-Nagle
Copy link

I'd like to know whether secure storage is available before trying to store anything. On some Linux systems, no secure storage seems to be available.

Use case: deciding whether to display a "Remember password" checkbox.

Thanks.

@brotskydotcom
Copy link
Collaborator

Hi @John-Nagle, thanks for the question.

If I understand you correctly, you are asking whether there's a way to find out whether the lifetime of a stored credential survives a reboot. This is similar to #147, and the sample code in that issue shows you how to use the persistence method on a credential store to answer that question. Please let me know if this gives you what you need.

@John-Nagle
Copy link
Author

Ah, good.

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