Skip to content

Commit

Permalink
Merge branch 'main' into webdav-provider-poc
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Dec 7, 2023
2 parents c6cafdc + 1b6c260 commit 828c0ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ class OneDrive extends Provider {
tag,
providerName: this.authProvider,
isAuthError: (response) => response.statusCode === 401,
isUserFacingError: (response) => [400, 403].includes(response.statusCode),
// onedrive gives some errors here that the user might want to know about
// e.g. these happen if you try to login to a users in an organization,
// without an Office365 licence or OneDrive account setup completed
// 400: Tenant does not have a SPO license
// 403: You do not have access to create this personal site or you do not have a valid license
getJsonErrorMessage: (body) => body?.error?.message,
})
}
Expand Down

0 comments on commit 828c0ae

Please sign in to comment.