我喜欢在 FireBase 中使用 Google Plus Sign 进行身份验证。
Google Plus 的 signinCallback 返回一个 auth 对象。如何使用此信息将我的用户安全地登录到 FireBase?
Auth 身份验证对象如下所示:
access_token: "ya29.2342324234"
authuser: "0"
client_id: "23ss4443234"
code: "4/tLijpRBvHp9hDNc-hcZk00bqvpz4.2342342"
cookie_policy: "single_host_origin"
expires_at: "136334897186"
expires_in: "3600"
g-oauth-window: Window
g_user_cookie_policy: "single_host_origin"
id_token: "324234234234.234234234.bW--234234---E2-Hj1I"
issued_at: "1364893586"
prompt: "consent"
scope: "https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email"
session_state: "234234234234234234..32cd"
state: ""
token_type: "Bearer"