diff --git a/open-isle-cli/src/utils/google.js b/open-isle-cli/src/utils/google.js index 45c92689e..d7d529bf0 100644 --- a/open-isle-cli/src/utils/google.js +++ b/open-isle-cli/src/utils/google.js @@ -51,10 +51,15 @@ export async function googleSignIn(redirect_success, redirect_not_approved) { } } +import router from '../router' + export function loginWithGoogle() { - googleSignIn(() => { - this.$router.push('/') - }, (token) => { - this.$router.push('/signup-reason?token=' + token) - }) + googleSignIn( + () => { + router.push('/') + }, + token => { + router.push('/signup-reason?token=' + token) + } + ) } \ No newline at end of file