Skip to content

Commit

Permalink
chore: formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
glebcha committed Nov 21, 2024
1 parent 8178f61 commit 6a99b5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/middleware/auth/authMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ export function initAuthMiddleware(initParams: AuthMiddlewareParams) {
return { ...sanitizedOptions, headers };
}

const body = method !== Methods['GET'] ? getBody({ refreshToken: currentSessionTokens.refreshToken }) : null;
const body =
method !== Methods['GET'] ?
getBody({ refreshToken: currentSessionTokens.refreshToken }) :
null;
const errorHandler =
typeof handleAuthError === 'function' ?
handleAuthError :
// eslint-disable-next-line no-console
() => console.warn('Failed to refresh authorization token');

if (globalThis[LIB_ID] && globalThis[LIB_ID]?.isWaitingAuth) {
Expand Down

0 comments on commit 6a99b5a

Please sign in to comment.