Page MenuHomePhabricator

[native] Handle invalid CSAT in Identity RPCs
AcceptedPublic

Authored by bartek on Sun, Nov 24, 11:27 PM.

Details

Reviewers
kamil
varun
Summary

Part of ENG-6664

Depends on D13992

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.
native/identity-service/identity-service-context-provider.react.js
117 ↗(On Diff #45978)

should this be includes('bad_credentials')?

also, maybe worth combining with D14029 and putting bad_credentials into shared constant, something like this

This revision is now accepted and ready to land.Mon, Nov 25, 5:09 AM
native/identity-service/identity-service-context-provider.react.js
117 ↗(On Diff #45978)

We don't use constants for client-side error code handling, but maybe we should. E.g. here

For includes, it's the same story as in https://phab.comm.dev/D14029#inline-78764 - native-rust-library takes care of the correct format