上一篇说了 facebook的实现,接下来说下google 的实现了,国际化的用的少.实际详细的文档也不多,这记录下来!
/download.lllomh.com/cliect/#/product/J417101756893390
一:开发者平台配置
进入开发者平台 https://console.developers.google.com
project=matest-247702
在凭据中创建app凭据:
?
设置 重定向地址等相关内容
?
动态演示:
?
我们需要的 是那个客户端 ID!
二:代码
核心代码:
<template>
<button v-google-signin-button="clientId" class="google-signin-button
"> Continue with Google</button>
</template>
<script>
import GoogleSignInButton from 'vue-google-signin-button-directive