Skip to content

Commit 5474c11

Browse files
committed
fix(authentication): properly savePrefs upon account creation
this handles updating the BE with our FCM token to mirror the login flow Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 828c87c commit 5474c11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/flipcash/shared/authentication/src/main/kotlin/com/flipcash/app/auth

apps/flipcash/shared/authentication/src/main/kotlin/com/flipcash/app/auth/AuthManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class AuthManager @Inject constructor(
130130
.onSuccess { userManager.set(it) }
131131
},
132132
onFailure = { Result.failure(it) }
133-
).map { Unit }
133+
).onSuccess { savePrefs() }.map { Unit }
134134
}
135135

136136
suspend fun login(

0 commit comments

Comments
 (0)