React JS Twitter身份验证Firebase

问题描述 投票:1回答:1

我在React JS中使用Firebase创建了一个Twitter身份验证。它工作正常。我希望获得用户时间表,登录后发布推文。我不确定如何在登录后检索用户时间表?有没有想过要解决这个问题?

reactjs twitter firebase-authentication
1个回答
0
投票

您需要使用在用户登录后提供的firebase身份验证的Twitter OAuth令牌与Twitter API进行通信。

用于检索OAuth令牌的Firebase文档:https://firebase.google.com/docs/auth/web/twitter-login

用于使用OAuth令牌发出请求的Twitter API文档:https://developer.twitter.com/en/docs/basics/authentication/guides/authorizing-a-request

然而,twitter auth的firebase实现只有OAuth 1.0。建议不要使用此方法来验证来自浏览器的请求。 https://twittercommunity.com/t/how-to-make-oauth-1-0a-calls-from-javascript/428

© www.soinside.com 2019 - 2024. All rights reserved.