Standalone raw file redirects (#428)

This commit is contained in:
Spencer Woo
2022-02-14 19:33:19 +08:00
committed by GitHub
parent 0fda1c93db
commit 9493ce9f3d
30 changed files with 365 additions and 185 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export function extractAuthCodeFromRedirected(url: string): string {
// New URL search parameter
const params = new URLSearchParams(url.split('?')[1])
return params.get('code') || ''
return params.get('code') ?? ''
}
// After a successful authorisation, the code returned from the Microsoft OAuth 2.0 authorization URL