Hey guys, I need your advice or any sample project...
# multiplatform
v
Hey guys, I need your advice or any sample project. I want to call session endpoint, in which I get accessToken. I want to use in accessToken in other endpoints as a authorisation. In android side we encrypt token and store in sharedpreference. Now I want to change in KMM to share with iOS team. So what is the best way in KMM?
m
I would suggest the Multiplatform-Settings library https://github.com/russhwolf/multiplatform-settings
v
Hey @Mitchell Syer thanks for replying. Can you please give me short description of this library?
m
Basically its SharedPreferences but multiplatform. It wraps the platforms key-value storage into a shared API. It can wrap DataStore or SharedPreferences on Android, and NSUserDefaults on iOS.
👀 1
v
How can we encrypte the data?
m
Based on https://github.com/russhwolf/multiplatform-settings/issues/85 there are ways to encrypt/secure data
v
great thanks a million @Mitchell Syer
👍 2