[RESOLVED] SecureStore.getItemAsync appears to return "null" as a string

When Expo.SecureStore.getItemAsync returns null, I noticed that “null” is a string. Is this intentional? Instead of returning null, it actually returns the string “null”. If you check its length, it has a length of 4.

The docs suggest it should return null, and not a string: https://docs.expo.io/versions/latest/sdk/securestore#returns

PS – Now I’m thinking I must have set the key to a value of “null” (string) somehow. Probably my bad. Still investigating.

glad you figured this out.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.