Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
LoginScreen: Commit access token to preference immediately
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Gupta <[email protected]>
  • Loading branch information
theimpulson committed Aug 24, 2023
1 parent aa501aa commit 744652d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ class LoginScreenViewModel @Inject constructor(
}

fun saveAccessToken() {
sharedPreferences.edit { putString(ACCESS_TOKEN, authState.accessToken) }
sharedPreferences.edit(true) { putString(ACCESS_TOKEN, authState.accessToken) }
}
}

0 comments on commit 744652d

Please sign in to comment.