fix(review): harden payment, oauth, and migration paths

This commit is contained in:
IanShaw027
2026-04-22 10:26:22 +08:00
parent 7fbd5177c2
commit c229f33e9e
33 changed files with 704 additions and 79 deletions

View File

@@ -153,10 +153,10 @@ export function buildOAuthBindingStartURL(
return `${normalized}/auth/oauth/${provider}/start?${params.toString()}`
}
export function startOAuthBinding(
export async function startOAuthBinding(
provider: BindableOAuthProvider,
options: BuildOAuthBindingStartURLOptions = {}
): void {
): Promise<void> {
if (typeof window === 'undefined') {
return
}
@@ -164,7 +164,7 @@ export function startOAuthBinding(
if (!startURL) {
return
}
prepareOAuthBindAccessTokenCookie()
await prepareOAuthBindAccessTokenCookie()
window.location.href = startURL
}