Skip to content

Commit 25f7bf0

Browse files
committed
Merge branch 'main' into 264-create-the-po
2 parents 7a5378f + 8b32674 commit 25f7bf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/api/auth/[...nextauth].js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const authOptions = {
3333
// Triggered on the initial sign in
3434
if (account && user) {
3535
// add the webstore webhook if it isn't there
36-
const data = await getWebhookConfig(accessToken)
37-
if(!data.id) {
36+
const data = await getWebhookConfig(account.accessToken)
37+
if(!data?.id) {
3838
createWebhookConfig(account.access_token)
3939
}
4040

0 commit comments

Comments
 (0)