Closed Chiyo-no-sake closed 2 years ago
Can you show a code sample and a reproducible example?
That's strange, I got it working on my Quasar project... The error you get seems to specify that you are trying to use it improperly...
Here is how I used it:
<template>
<QPage class="flex items-center justify-center test">
<QCard>
<QCardActions align="center"
><GoogleSignInButton theme="filled_blue" ux-mode="popup" @success="onSignInSuccess" @error="onSignInError"
/></QCardActions>
</QCard>
</QPage>
</template>
<script setup lang="ts">
import { GoogleSignInButton, type CredentialResponse } from 'vue3-google-signin';
function onSignInSuccess(response: CredentialResponse) {
console.log(response.credential as string);
}
function onSignInError() {
console.error('error');
}
</script>
Forgetting that I'm using typescript and unocss for my styling, it should be pretty clear to you ;)
Thanks @philippedasilva-orizone, it should work unless something is misconfigured(also can be a problem in library)
@Chiyo-no-sake can you show some example?
I solved the problem, sorry for that, it was not a problem of this library. Closing.
The google sign-in button is not showing on a page setup with Quasar and Vite. I got the following warnings when including the component in a page:
I have correctly done all the other steps (the setup of the plugin passing clientId + scopes)