如何使用Firebase Auth令牌获取YouTube API访问令牌

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

我正在使用React本机应用程序,并希望对YouTube API使用Firebase身份验证令牌。

firebase.auth().signInWithEmailAndPassword(
    credentials.email,
    credentials.password
   ).then( ()=>{})

实现此目标的正确方法是什么?

firebase react-native youtube-data-api react-native-firebase
1个回答
0
投票

Firebase Auth令牌是一个JWT,它不是可用于Youtube API的有效OAuth2令牌。如果要访问youtube,则必须使用[documented authentication flow]分别登录。

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