We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f3ee5 commit aadc709Copy full SHA for aadc709
src/api/grpc/transport.grpc.api.ts
@@ -28,7 +28,10 @@ const authInterceptor: Interceptor =
28
29
return await next(req);
30
} catch (error) {
31
- if (error instanceof ConnectError && error.code === Code.Unauthenticated) {
+ if (
32
+ error instanceof ConnectError &&
33
+ (error.code === Code.Unauthenticated || error.code === Code.PermissionDenied)
34
+ ) {
35
const logoutFunction = useOrganizationStore.getState().logoutFunction;
36
logoutFunction(false);
37
}
0 commit comments