Skip to content

Commit 3ea729d

Browse files
authored
fix(auth): don't send an empty body with the request #8 (#9)
1 parent ee9aa05 commit 3ea729d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/auth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emdgroup/react-auth",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "React hooks implementing the Authorization Code Grant Flow with PKCE.",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -31,7 +31,7 @@
3131
"react": ">= 17"
3232
},
3333
"dependencies": {
34-
"@emdgroup/react-query": "^1.0.4",
34+
"@emdgroup/react-query": "^1.1.0",
3535
"@emdgroup/react-storage": "^1.0.3"
3636
}
3737
}

packages/auth/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export function UserContextProvider({
334334
const { status: userInfoStatus, response: userInfoResponse, revalidate } = useCachedQuery<any>(
335335
session && session.expires > Date.now() && !code ? 'GET' : null,
336336
userInfoEndpoint.startsWith('/') ? `https://${idpHost}${userInfoEndpoint}` : userInfoEndpoint,
337-
'',
337+
undefined,
338338
authHeader,
339339
);
340340

0 commit comments

Comments
 (0)