HomePhabricator
Diffusion Comm ca53cc98ef66

[web] check if version is supported by identity service

Description

[web] check if version is supported by identity service

Summary:
call the versionSupported identity client method to check if the client code version is supported. if it's not supported by identity and the client is logged in, log out. regardless of whether or not client is logged in, display modal instructing user to reload/refresh.

Depends on D12406

Test Plan:

  • bumped min version supported on staging identity to 1000, confirmed that modal was displayed and i was logged out on web
  • modified function returned by useVersionSupportedByIdentity to always throw, confirmed that log appeared in console but user was not logged out and modal was not displayed

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
varunAuthored on Jun 12 2024, 12:12 PM
Reviewer
ashoat
Differential Revision
D12407: [web] check if version is supported by identity service
Parents
rCOMM62c362d0a861: [lib][native] add useVersionSupportedByIdentity hook and use it on native
Branches
Unknown
Tags
Unknown