Skip to content

Commit

Permalink
Merge pull request #2269 from headlamp-k8s/fix_token_refresh
Browse files Browse the repository at this point in the history
frontend: Fix refreshToken
  • Loading branch information
yolossn authored Aug 28, 2024
2 parents c26c913 + 80904aa commit 247e8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/k8s/apiProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async function refreshToken(token: string | null): Promise<void> {
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
Expand Down

0 comments on commit 247e8f8

Please sign in to comment.