Page MenuHomePhabricator

[native] Don't refetch nonce from identity after identity auth
ClosedPublic

Authored by ashoat on Apr 24 2024, 12:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 19, 1:03 PM
Unknown Object (File)
Wed, Jan 8, 10:44 AM
Unknown Object (File)
Tue, Jan 7, 2:38 PM
Unknown Object (File)
Sat, Jan 4, 12:45 AM
Unknown Object (File)
Sat, Jan 4, 12:18 AM
Unknown Object (File)
Dec 22 2024, 12:25 AM
Unknown Object (File)
Dec 22 2024, 12:25 AM
Unknown Object (File)
Dec 22 2024, 12:24 AM
Subscribers
None

Details

Summary

Noticed that generateNonce was getting called after the user auth'd with identity, probably because the effect was re-run.

Adding this condition prevented it from getting rerun unnecessarily.

Test Plan

Confirm that I'm not seeing IDENTITY_GENERATE_NONCE_STARTED and IDENTITY_GENERATE_NONCE_SUCCESS dispatched after identity auth during login

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage