Where is the best place to store auth state that w...
# compose-ios
v
Where is the best place to store auth state that would survive a system-initiated process death? For obvious reasons I would want a user to authenticate as rarely as possible. Thanks!
k
Maybe keychain?
v
Mind elaborating? Kinda new to jetpack and especially compose. And btw, I’m referring to user auth state (authenticated users via openID)
c
im assuming just going into userSettings and sharedPrefs will get the job done.
Kinda new to jetpack and especially compose.
nothing about storing data is compose specific as compose is a ui toolkit
a
You can try using Multiplatform-Settings - https://github.com/russhwolf/multiplatform-settings Or Jetpack DataStore (the latest alpha versions are multiplatform).