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.
2 parents cc7a63e + 98452c9 commit 8b32674Copy full SHA for 8b32674
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