Skip to content

Added SecureStorage property wrapper#195

Open
Mcrich23 wants to merge 2 commits intoevgenyneu:masterfrom
Mcrich23:create-property-wrapper
Open

Added SecureStorage property wrapper#195
Mcrich23 wants to merge 2 commits intoevgenyneu:masterfrom
Mcrich23:create-property-wrapper

Conversation

@Mcrich23
Copy link

Hello!
I have loved using this package for a while and have finally made it easier to use. Introducing SecureStorage! Simply and securely store information in keychain with a property wrapper. I have given it support for all of the typical get/set keychain options, but the easiest way to use it is just:

@SecureStorage("userToken") var userToken: String?

While you can pass in the keychain you want to save with to the property wrapper, you can also set the defaults by updating the variables in SecureStorageDefaults.

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

Successfully merging this pull request may close these issues.

2 participants