HomePhabricator
Diffusion Comm 79827e1baff4

[native] try to log in if native user is missing CSAT

Description

[native] try to log in if native user is missing CSAT

Summary: if a native password user is missing a CSAT (and usingCommServicesAccessToken is true), we should try to log in the identity and get a new CSAT

Test Plan:
using this patch, i cleared the access token on native and confirmed that i was logged in to identity again and received a new access token. i confirmed that if identity is unavailable, i get logged out and the alert displays explaining why i was logged out.

also confirmed that my avatar doesn't get removed, since we perform keyserver auth as part of the usePasswordLogIn hook

Reviewers: ashoat, tomek

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D12128

Details

Provenance
varunAuthored on May 6 2024, 1:55 PM
Reviewer
ashoat
Differential Revision
D12128: [native] try to log in if native user is missing CSAT
Parents
rCOMMc2da721a842f: [lib] Narrow `threadInfo` argument of `threadFrozenDueToViewerBlock`
Branches
Unknown
Tags
Unknown