Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/web/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const getAuthOptions: () => NextAuthConfig = () => ({
clientId: env.MICROSOFT_CLIENT_ID,
clientSecret: env.MICROSOFT_CLIENT_SECRET,
allowDangerousEmailAccountLinking: true,
checks: ["pkce"],
authorization: {
url: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
params: {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/utils/outlook/scopes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export const SCOPES = [
"email",
"User.Read",
"offline_access", // Required for refresh tokens
"Mail.ReadWrite", // Read and write access to mailbox
/* "Mail.ReadWrite", // Read and write access to mailbox
"Mail.Send", // Send emails
"Mail.ReadBasic", // Read basic mail properties
"Mail.Read", // Read mail in all mailboxes
"Mail.Read.Shared", // Read mail in shared mailboxes
"MailboxSettings.ReadWrite", // Read and write mailbox settings
...(env.NEXT_PUBLIC_CONTACTS_ENABLED ? ["Contacts.ReadWrite"] : []),
...(env.NEXT_PUBLIC_CONTACTS_ENABLED ? ["Contacts.ReadWrite"] : []), */
] as const;