mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-02 10:00:54 +08:00
feat: request google login while refresh
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user