feat: Replace eslint => oxlint + oxfmt
Some checks failed
Deployment / wordpress (push) Successful in 6s
Deployment / nuxt (push) Has been cancelled

This commit is contained in:
2026-02-01 21:53:40 -05:00
parent 58dbcdd25a
commit 2b2a1c1ad6
57 changed files with 14911 additions and 5932 deletions

View File

@@ -54,10 +54,13 @@ export async function refreshAuthToken(refreshToken: string): Promise<string | u
const refreshPromise = (async () => {
const { wpUrl } = useRuntimeConfig();
const endpoint = `${wpUrl}/graphql`;
const { data } = await executeGraphQLHTTP<ResultOf<"AuthRefreshToken">>({
query: AuthRefreshTokenDocument,
variables: { refreshToken },
}, { endpoint });
const { data } = await executeGraphQLHTTP<ResultOf<"AuthRefreshToken">>(
{
query: AuthRefreshTokenDocument,
variables: { refreshToken },
},
{ endpoint },
);
return data?.refreshToken?.authToken || undefined;
})();
@@ -91,8 +94,7 @@ export async function getAuthToken(event: H3Event): Promise<string | undefined>
}
session.secure.authToken = newAuthToken;
await setUserSession(event, session);
}
catch {
} catch {
await clearUserSession(event);
return;
}