我正在我的应用程序中使用 TikTok 实现社交登录,根据官方文档,我实现了基本设置并与我的 AppDelegate https://developers.tiktok.com/doc/getting-started-ios-quickstart-swift连接。使用示例代码实现了loginkit,但在我们从TikTok应用程序授权后,request.sendcompletionBlock没有得到任何响应或没有进入完成块。如果有人在 iOS 中实现了 tiktok 登录套件,请帮忙。
/* STEP 1 */
let scopes = "user.info.basic,video.list" // list your scopes
let scopesSet = NSOrderedSet(array:scopes)
let request = TikTokOpenSDKAuthRequest()
request.permissions = scopesSet
/* STEP 2 */
request.send(self, completion: { resp -> Void in
/* STEP 3 */
if resp.errCode == 0 {
/* STEP 3.a */
let clientKey = ... // you will receive this once you register in the Developer Portal
let responseCode = resp.code
// replace this …Run Code Online (Sandbox Code Playgroud)