diff --git a/frontend/src/lib/k8s/apiProxy.ts b/frontend/src/lib/k8s/apiProxy.ts index 51912e0e62..2dd6383d12 100644 --- a/frontend/src/lib/k8s/apiProxy.ts +++ b/frontend/src/lib/k8s/apiProxy.ts @@ -208,7 +208,7 @@ async function refreshToken(token: string | null): Promise { const decodedToken: any = decodeToken(token); // return if the token doesn't have an expiry time - if (!decodedToken.exp) { + if (!decodedToken?.exp) { return; } // convert expiry seconds to date object