Firebase Android身份验证失败:expired_token(身份验证令牌已过期) [英] Firebase Android Authentication failed: expired_token (Auth token is expired)

查看:827
本文介绍了Firebase Android身份验证失败:expired_token(身份验证令牌已过期)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 com.google.gms:google-services:3.0.0 com.google.firebase遇到Android Firebase身份验证问题:火力-AUTH:9.0.1

使用Firebase(Google或Facebook)进行身份验证后1小时,我收到以下错误消息:

W / PersistentConnection:pc_0 - 身份验证失败:expired_token(身份验证令牌已过期)



为什么Firebase令牌在1小时后过期以及如何延长这个过期期限?

更新

问题,Firebase令牌在1小时后过期。现在我收到以下消息:
W / PersistentConnection:pc_0 - 身份验证失败:invalid_token(auth头文件中声明的'kid'无效)



我很感激任何帮助。

解决方案

Facebook,Email ..),在Firebase控制台更新您的应用程序的SHA-1键将修复令牌到期问题。



讨论 Google开发者分享了解决此问题的指南。



指南: https://drive.google .com / file / d / 0B94LePkXiqa6SXVFd3N1NzJHX1E / view


I encounter an issue with Android Firebase Auth using com.google.gms:google-services:3.0.0 and com.google.firebase:firebase-auth:9.0.1.

1 hour after authentication with Firebase (Google or Facebook), I get the following error:

W/PersistentConnection: pc_0 - Authentication failed: expired_token (Auth token is expired)

Why does Firebase token expire after 1 hour and how to extend this expiration period?

UPDATE

I still encounter this issue, Firebase token expires after 1 hour. Now I get the following message: W/PersistentConnection: pc_0 - Authentication failed: invalid_token (Invalid claim 'kid' in auth header.)

I appreciate any help.

解决方案

If we use default Auth providers like (Google, Facebook, Email..), updating "SHA-1 key" of your Application in firebase console would fix the token expiry issue.

In this discussion a Google developer shared a guide to solve this problem.

Guide: https://drive.google.com/file/d/0B94LePkXiqa6SXVFd3N1NzJHX1E/view

这篇关于Firebase Android身份验证失败:expired_token(身份验证令牌已过期)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆