Skip to content

Commit aadc709

Browse files
authored
fix(UI-1432): fix PermissionDenied error in authInterceptor (#1106)
1 parent d6f3ee5 commit aadc709

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/grpc/transport.grpc.api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ const authInterceptor: Interceptor =
2828

2929
return await next(req);
3030
} catch (error) {
31-
if (error instanceof ConnectError && error.code === Code.Unauthenticated) {
31+
if (
32+
error instanceof ConnectError &&
33+
(error.code === Code.Unauthenticated || error.code === Code.PermissionDenied)
34+
) {
3235
const logoutFunction = useOrganizationStore.getState().logoutFunction;
3336
logoutFunction(false);
3437
}

0 commit comments

Comments
 (0)