{"id":18152412,"url":"https://github.com/chanioxaris/tiktok-oauth2","last_synced_at":"2025-07-02T19:37:03.399Z","repository":{"id":57617956,"uuid":"386897400","full_name":"chanioxaris/tiktok-oauth2","owner":"chanioxaris","description":"Go package for TikTok OAuth 2.0 support","archived":false,"fork":false,"pushed_at":"2021-07-18T07:59:18.000Z","size":42,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T06:17:24.134Z","etag":null,"topics":["oauth2","tiktok"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chanioxaris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-17T09:42:47.000Z","updated_at":"2022-11-27T21:53:18.000Z","dependencies_parsed_at":"2022-09-08T08:11:02.789Z","dependency_job_id":null,"html_url":"https://github.com/chanioxaris/tiktok-oauth2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanioxaris%2Ftiktok-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanioxaris%2Ftiktok-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanioxaris%2Ftiktok-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanioxaris%2Ftiktok-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanioxaris","download_url":"https://codeload.github.com/chanioxaris/tiktok-oauth2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247574088,"owners_count":20960495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oauth2","tiktok"],"created_at":"2024-11-02T02:07:10.381Z","updated_at":"2025-04-07T00:31:15.079Z","avatar_url":"https://github.com/chanioxaris.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tiktok-oauth2\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/chanioxaris/tiktok-oauth2/master/LICENSE)\n[![GoDoc](https://godoc.org/github.com/chanioxaris/json-server?status.svg)](https://pkg.go.dev/github.com/chanioxaris/tiktok-oauth2)\n[![codecov](https://codecov.io/gh/chanioxaris/tiktok-oauth2/branch/master/graph/badge.svg?token=FcdhuSfrfA)](https://codecov.io/gh/chanioxaris/tiktok-oauth2)\n[![goreportcard](https://goreportcard.com/badge/github.com/chanioxaris/json-server)](https://goreportcard.com/report/github.com/chanioxaris/tiktok-oauth2)\n\nA package to add support for TikTok OAuth 2.0 on top of the Golang's package ([https://github.com/golang/oauth2](https://github.com/golang/oauth2))\n\nYou can find the official TikTok documentation [here](https://developers.tiktok.com/doc)\n\n### Install \n`$ go get github.com/chanioxaris/tiktok-oauth2`\n\n### Available functions\n- `NewConfig()` Create a new TikTok oauth2 config\n- `ConfigExchange()` Convert an oauth2 config into an oauth2 token\n- `RefreshToken()` Refresh the access token\n- `RevokeAccess()` Revoke the access token\n- `RetrieveUserInfo()` Retrieve basic information of a TikTok user\n\n### Helper functions\n- `OpenIDFromToken()` Retrieve the extra field `open_id` from an oauth2 token.\n- `ScopeFromToken()` Retrieve the extra field `scope` from an oauth2 token.\n- `RefreshExpiresInFromToken()` Retrieve the extra field `refresh_expires_in` from an oauth2 token.\n\n### License\ntiktok-oauth2 is [MIT licensed](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanioxaris%2Ftiktok-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanioxaris%2Ftiktok-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanioxaris%2Ftiktok-oauth2/lists"}