Page MenuHomePhabricator

[web] Handle invalid CSAT in Identity client
ClosedPublic

Authored by bartek on Nov 24 2024, 11:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 22, 10:07 PM
Unknown Object (File)
Sun, Dec 22, 9:41 PM
Unknown Object (File)
Sun, Dec 22, 12:02 PM
Unknown Object (File)
Mon, Dec 16, 7:45 AM
Unknown Object (File)
Wed, Dec 11, 8:38 AM
Unknown Object (File)
Tue, Dec 10, 12:47 AM
Unknown Object (File)
Thu, Dec 5, 9:47 PM
Unknown Object (File)
Thu, Dec 5, 11:30 AM
Subscribers

Details

Summary

Part of ENG-6664
On web, we cannot use the same approach as on native because Identity calls are done on shared worker, while hook needs to be called on main context.

Depends on D14024

Test Plan

Manual testing with mocked invalid access token. Identity authed RPC calls end up with logout.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Nov 25 2024, 2:08 AM
kamil added inline comments.
web/grpc/identity-service-context-provider.react.js
104 ↗(On Diff #45979)
This revision is now accepted and ready to land.Nov 25 2024, 5:10 AM
web/grpc/identity-service-context-provider.react.js
104 ↗(On Diff #45979)

Answered there. The same applies for grpc-web - it behaves the same as our Rust Display traits.
Exception message is the RPC error message (error code from Identity).