Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Tiktok support

未关闭
#1,102 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript, react-native

调研方向

从 authorize API 和授权 URL 生成路径开始,然后将其参数处理方式与 TikTok Login Kit 文档进行比较。定义 customParameterNames、encodeParameterValues 和 staticAuthorizeUrl 应如何影响生成的 URL,并根据 TikTok 对 client_key 和逗号分隔的 scope 要求,验证最终行为。

由索引模型根据 Issue 内容生成。

描述

Some OAuth2 providers have a slightly different implementation than the official specification.

If we take the case of TikTok's implementation, here are the differences in the URL parameters during the authorization procedure:

  • The client_id parameter is named client_key.
  • The scope parameter value is comma separated and not URL encoded.

It should be possible to specify how to change the parameters when generating the authorization URL, for example, by initializing it with new parameters:

const result = await authorize({
    customParameterNames: {
        clientId: 'client_key'
        ...
    },
    encodeParameterValues: {
        scope: false
    },
    staticAuthorizeUrl: 'https://example.com/authorize',
});
Parameter Type Description
customParameterNames Object Specifies all parameters that should be renamed when generating the authorization URL.
encodeParameterValues Object Specifies all parameters that should be encoded or not when generating the authorization URL.
staticAuthorizeUrl String Specify to skip authorization URL generation and get this one

Tiktok documentation :
https://developers.tiktok.com/doc/login-kit-web?enter_method=left_navigation

Any ideas?

主要语言
Java
星标
2.3k
派生
472
平均合并
4 天 7 小时
30 天内合并 PR
9

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FormidableLabs/react-native-app-auth 的其他 Issue

查看 FormidableLabs/react-native-app-auth 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。