fix: refresh profile before caching verified PIN

This commit is contained in:
tapframe 2026-08-17 21:33:41 +05:30
parent 49a7bd7fc3
commit 5327166faf

View file

@ -310,6 +310,7 @@ object ProfileRepository {
val result = SupabaseProvider.client.postgrest.rpc("verify_profile_pin", params)
result.decodeSingle<PinVerifyResult>().also { verifyResult ->
if (verifyResult.unlocked) {
pullProfiles()
rememberVerifiedPin(profileIndex = profileIndex, pin = pin)
}
}