Page MenuHomePhabricator

[web] Handle invalid CSAT in Identity client
ClosedPublic

Authored by bartek on Nov 24 2024, 11:29 PM.
Tags
None
Referenced Files
F4111538: D14025.diff
Mon, Feb 17, 8:15 PM
Unknown Object (File)
Fri, Jan 24, 1:59 PM
Unknown Object (File)
Thu, Jan 23, 5:52 AM
Unknown Object (File)
Jan 17 2025, 5:41 PM
Unknown Object (File)
Jan 17 2025, 10:19 AM
Unknown Object (File)
Jan 17 2025, 9:16 AM
Unknown Object (File)
Jan 17 2025, 9:13 AM
Unknown Object (File)
Jan 17 2025, 8:45 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
No Lint Coverage
Unit
No Test Coverage

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).