Skip to content

Commit 59d5a13

Browse files
committed
fix error not passing in req
1 parent e144db5 commit 59d5a13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "payload-oauth2",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"type": "module",
55
"homepage:": "https://payloadcms.com",
66
"repository": "https://github.com/WilsonLe/payload-oauth2",

src/callback-endpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const createCallbackEndpoint = (
6363
// /////////////////////////////////////
6464
// get user info
6565
// /////////////////////////////////////
66-
const userInfo = await pluginOptions.getUserInfo(access_token);
66+
const userInfo = await pluginOptions.getUserInfo(access_token, req);
6767

6868
// /////////////////////////////////////
6969
// ensure user exists

0 commit comments

Comments
 (0)