Socket
Socket
Sign inDemoInstall

com.taptap.tds.login

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.taptap.tds.login

TapTap Develop Service


Version published
Weekly downloads
69
increased by15%
Maintainers
1
Weekly downloads
 
Created
Source

TapTap.Login

使用前提

使用 TapTap.Login 前提是必须依赖以下库:

如果游戏需要支持 PC Platform ,则参考 PC配置文档

1.初始化

如果配合 TapBoostrap 使用,则不需要调用初始化接口
TapLogin.Init(string clientID);

2.唤起 TapTap 网页 或者 TapTap 客户端进行登陆

登陆成功之后,会返回 AccessToken

var accessToken = await TapLogin.Login();

配置权限范围

// 默认使用 public_profile

var accessToken = await TapLogin.Login(new []{"public_profile"})
;

3. 获取 TapTap AccessToken

var accessToken = await TapLogin.GetAccessToken();

4. 获取 TapTap Profile

var profile = await TapLogin.FetchProfile();

5. 获取篝火测试资格

var boolean = await TapLogin.GetTestQualification();

6. 退出登陆

TapLogin.Logout();

FAQs

Package last updated on 12 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc