This returns null when the auth metadata returned is incomplete (contains null values).
Context: https://linear.app/comm/issue/ENG-7083/getting-auth-metadata-is-incomplete-error-when-testing-on-web
Differential D11198
[web/native] Return null instead of throw new error when incomplete auth metadata will on Feb 29 2024, 6:15 AM. Authored by Tags None Referenced Files
Details This returns null when the auth metadata returned is incomplete (contains null values). Context: https://linear.app/comm/issue/ENG-7083/getting-auth-metadata-is-incomplete-error-when-testing-on-web no longer receive uncaught promise error on web
Diff Detail
Event TimelineComment Actions Can you clarify what effects this will have downstream before landing? Does user prefix search on identity work without auth metadata? How about exact match user search? Comment Actions Downstream the client will no longer attempt to initialize a websocket connection in the identity-search-context. The identitySearchSocketConnected variable in useSearchUsers will remain false and so the function will fallback to keyserver search. Identity-based prefix search will not work but keyserver prefix search will work. We don't currently use identity-search for exact search either, so that won't be a problem.
|