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)
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
Unknown Object (File)
Nov 3 2024, 6:30 AM
Unknown Object (File)
Nov 3 2024, 6:30 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