Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Commit

Permalink
Replace the 'scope' option in code snippet (#32)
Browse files Browse the repository at this point in the history
As per nextauthjs/next-auth#2411 (comment) , the new 'authorization' option replaces the the 'scope' option.

This commit updates the docs to reflect this change.
  • Loading branch information
haydenisler authored Sep 16, 2021
1 parent 176087d commit c45e61b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/providers/azure-ad.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ providers: [
clientId: process.env.AZURE_AD_CLIENT_ID,
clientSecret: process.env.AZURE_AD_CLIENT_SECRET,
tenantId: process.env.AZURE_AD_TENANT_ID, // omit this if it was omitted above.
scope: 'offline_access User.Read',
authorization: {
params: {
scope: 'offline_access User.Read',
},
},
}),
]
...
Expand Down

1 comment on commit c45e61b

@vercel
Copy link

@vercel vercel bot commented on c45e61b Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.