feat: request google login while refresh

This commit is contained in:
Tim
2025-07-23 15:49:41 +08:00
parent 33ddc3bb77
commit 7b22b2d15d
5 changed files with 35 additions and 24 deletions

View File

@@ -50,3 +50,11 @@ export async function googleSignIn(redirect_success, redirect_not_approved) {
/* ignore */
}
}
export function loginWithGoogle() {
googleSignIn(() => {
this.$router.push('/')
}, (token) => {
this.$router.push('/signup-reason?token=' + token)
})
}