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

This commit is contained in:
Morgan authored and GitHub committed 2024-12-17 09:05:10 +00:00
1 parent 318470d866
commit 5fad7c9478
2 files changed
+2 -2

No files matched your search

@@ -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 };
}