Page MenuHomePhabricator

[web] Handle invalid CSAT in Identity client
AcceptedPublic

Authored by bartek on Sun, Nov 24, 11:29 PM.
Tags
None
Referenced Files
F3383928: D14025.diff
Thu, Nov 28, 6:23 PM
Unknown Object (File)
Mon, Nov 25, 5:34 AM
Subscribers

Details

Reviewers
kamil
varun
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.Mon, Nov 25, 2:08 AM
kamil added inline comments.
web/grpc/identity-service-context-provider.react.js
104
This revision is now accepted and ready to land.Mon, Nov 25, 5:10 AM
web/grpc/identity-service-context-provider.react.js
104

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