Closed bostonareahuman closed 6 months ago
@bostonareahuman Sorry for the late reply, the default login iframe button generated by google only provides a credential instead of code, in order to get code you must set popup-type="TOKEN" and a custom button on which acts as login button. You might have seen the following warning
You need to use it like this
<script setup lang="ts">
const callback: CallbackTypes.TokenResponseCallback = (response) => {
// This callback will be triggered when the user selects or login to
// his Google account from the popup
console.log("Handle the response", response)
}
</script>
<template>
<GoogleLogin :callback="callback" popup-type="TOKEN">
<button class="my-custom-button">Login</button>
</GoogleLogin>
</template>
Hey there... I get the popup and am able to select the user I want to login as but the console shows no "Handle the response" coming back to the browser..
Vue3JS on http://localhost:10100/ I have the approved callback as http://localhost:10100 as well.
In the Template