Store multiple Key Values on SecureStore

#1

Hi there,
I want to store multiple values on SecureStore. Is it possible? I tried using this:

SecureStore.setItemAsync({'key1': 'value1', 'key2': 'value2'})

but it didn’t work. Is there something I’m missing?

Thanks for your help.

1 Like
#2

The method signature takes one key and one value. Please see the docs: https://docs.expo.io/versions/latest/sdk/securestore.html#exposecurestoresetitemasynckey-value-options. You can use Promise.all for concurrency.

1 Like