We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7a63e commit 98452c9Copy full SHA for 98452c9
pages/api/auth/[...nextauth].js
@@ -33,8 +33,8 @@ const authOptions = {
33
// Triggered on the initial sign in
34
if (account && user) {
35
// add the webstore webhook if it isn't there
36
- const data = await getWebhookConfig(accessToken)
37
- if(!data.id) {
+ const data = await getWebhookConfig(account.accessToken)
+ if(!data?.id) {
38
createWebhookConfig(account.access_token)
39
}
40
0 commit comments