Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIkTok flow #23

Open
15 tasks
md-abdul-halim-rafi opened this issue Jan 12, 2023 · 0 comments
Open
15 tasks

TIkTok flow #23

md-abdul-halim-rafi opened this issue Jan 12, 2023 · 0 comments
Assignees
Labels
Backend documentation Improvements or additions to documentation feature
Milestone

Comments

@md-abdul-halim-rafi
Copy link
Member

md-abdul-halim-rafi commented Jan 12, 2023

Connect the account

  • Authorize with TikTok
  • Get code from redirect_uri and send code, state, and csrfState (from cookie) to the backend
  • Backend will verify and will connect the TikTok account for the user
    • Get open_id, access_token, refresh_token and scope
    • Verify if the user has granted all the scopes from scope
    • Get the user all basic information
    • Get the last 30 videos of the user
      • Analyze the video data
    • Insert the TikTok data into the database

Regular snapshot

  • Take the open_id and access_token for the user
  • Get the user all basic information
  • Get the last 30 videos and analyze
  • Insert a new row for the snapshot

Meta information

  • access_token has validity for 1d
  • refresh_token has validity for 1y

Common things to do

  • Check if the access_token has expired
  • If expired, get a new access_token using the refresh_token and update into the database for that user
@md-abdul-halim-rafi md-abdul-halim-rafi converted this from a draft issue Jan 12, 2023
@md-abdul-halim-rafi md-abdul-halim-rafi self-assigned this Jan 12, 2023
@md-abdul-halim-rafi md-abdul-halim-rafi added documentation Improvements or additions to documentation Backend feature labels Jan 12, 2023
@md-abdul-halim-rafi md-abdul-halim-rafi added this to the TikTok v1 milestone Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend documentation Improvements or additions to documentation feature
Projects
Status: Planning 🧐
Development

No branches or pull requests

1 participant