经过身份验证的用户的组织列表,如何添加此API的范围?

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

我在我的 flutter 项目中尝试使用 GitHub 进行 Firebase 身份验证。我从中获得了访问令牌,但我很难获取使用此令牌的经过身份验证的用户的组织列表

此链接https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-the-authenticated-user

Postman Image here

enter image description here

flutter github firebase-authentication github-organizations
1个回答
0
投票

您需要您的代币具有“repo”范围。创建经典令牌时,您可以选择其范围。在这种情况下,您当前的令牌不涵盖存储库的范围。

您需要创建一个具有该范围的新令牌。

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