A package to add support for TikTok OAuth 2.0 on top of the Golang's package (https://github.com/golang/oauth2)
You can find the official TikTok documentation here
$ go get github.com/chanioxaris/tiktok-oauth2
NewConfig()
Create a new TikTok oauth2 configConfigExchange()
Convert an oauth2 config into an oauth2 tokenRefreshToken()
Refresh the access tokenRevokeAccess()
Revoke the access tokenRetrieveUserInfo()
Retrieve basic information of a TikTok userOpenIDFromToken()
Retrieve the extra field open_id
from an oauth2 token.ScopeFromToken()
Retrieve the extra field scope
from an oauth2 token.RefreshExpiresInFromToken()
Retrieve the extra field refresh_expires_in
from an oauth2 token.tiktok-oauth2 is MIT licensed.