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
F3718900: D11771.id39489.diff
Wed, Jan 8, 10:44 AM
F3698590: D11771.diff
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)
Sun, Dec 22, 12:25 AM
Unknown Object (File)
Sun, Dec 22, 12:25 AM
Unknown Object (File)
Sun, Dec 22, 12:24 AM
Unknown Object (File)
Sun, Dec 22, 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
Lint Not Applicable
Unit
Tests Not Applicable