-
How can I retrieve secret information using the "find" method of the user who is already logged in with identifier? |
Beta Was this translation helpful? Give feedback.
Answered by
sbertix
Feb 6, 2021
Replies: 1 comment 2 replies
-
Hey @aslios, As usual, you need to create an instance of Your code becomes… let loginUser = getLastUser() // Assuming this gives you a string with the logged in user identifier.
let key = KeychainStorage<Secret>().find(matching: loginUser) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sbertix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @aslios,
As usual, you need to create an instance of
KeychainStorage
first (either according to your needs or using the "default" one). It's not astatic
function inKeychainStorage
but an actual method 😊Your code becomes…