fix: redirect on calendar oauth denied auth (#18228)

This commit is contained in:
Morgan
2024-12-17 09:05:10 +00:00
committed by GitHub
parent 318470d866
commit 5fad7c9478
2 changed files with 2 additions and 2 deletions
@@ -116,7 +116,7 @@ export class GoogleCalendarService implements OAuthCalendarApp {
) {
// User chose not to authorize your app or didn't authorize your app
// redirect directly without oauth code
if (!code) {
if (!code || code === "undefined") {
return { url: redir || origin };
}
@@ -151,7 +151,7 @@ export class OutlookService implements OAuthCalendarApp {
redir?: string
) {
// if code is not defined, user denied to authorize office 365 app, just redirect straight away
if (!code) {
if (!code || code === "undefined") {
return { url: redir || origin };
}