wavezync / vue3-google-signin

Google OAuth2 plugin for Vue3 Apps. This uses latest Google Identity Service Library. It also provides set of composables which can be used easily to implement different authentication strategies
https://vue3-google-signin.wavezync.com/
MIT License
161 stars 17 forks source link

Getting "This document requires 'TrustedScript' assignment" after login #19

Closed kpoman closed 2 years ago

kpoman commented 2 years ago

Hello, I am not able to login, I get this error after obtaining a credential. I am using the most basic example:


<template>
  <GoogleSignInButton
    @success="handleLoginSuccess"
    @error="handleLoginError"
  ></GoogleSignInButton>
</template>

</template>

<script setup>

import {GoogleSignInButton} from "vue3-google-signin";
const handleLoginSuccess = (response) => {
  console.log('response:')
  const { credential } = response;
  console.log("Access Token", credential)
}

const handleLoginError = (response) => {
  console.log("Error logging in")
}
</script>

<style>

</style>
kpoman commented 2 years ago

image

kasvith commented 2 years ago

Can you show me your google client settings?

kasvith commented 2 years ago

This seems a common issue https://github.com/anthonyjgrove/react-google-login/issues/527

kasvith commented 2 years ago

@kpoman do you still get this issue? if so provide me with a reproducible example so I can take a deeper look. I couldn't reproduce this locally

kpoman commented 2 years ago

@kasvith I am not seeing it anymore. Will post an example if it comes up again.

kasvith commented 2 years ago

Thanks @kpoman

TrayHard commented 1 year ago

I have the same issue even tho the authorization works, but still I would like to remove it from the console, but don't understand how?

kasvith commented 1 year ago

@TrayHard this seems to be a problem with google configuration, as i stated in above comment