From what I understand, I’m supposed to create a TikTok developer account to get my secrets keys and then set up the API via the Bubble API connector.
In the documentation it is written: “Create an Anti-Forgery State Token
You must prevent request forgery attacks to protect the security of your users. The first step before making the redirect request to TikTok’s authorization server is to create a unique session token to maintain the state between the request and callback.”
I’m not sure what I’m supposed to do at this point.
Has anyone set up the Tiktok login yet and can they help me?
This is, like, so not helpful. Does TikTok have a user data endpoint? If so, none of this should be done manually, but should be done in the API connector and let Bubble handle the refresh tokens.
If TikTok does not have a user identity endpoint then the answer should be, “dude, this will not work easily for you”.
Because YOU KNOW the next question will be, “how do I exchange these tokens and stuff?” followed by, “what the heck do I do with these tokens, anyway?”
@vitaly you won’t run that action directly after pulling up the outh site from tiktok. You’ll call that once your redirect page loads. Have you made your redirect page yet?
Yes, I already figured it out. I have a page redirect, but I have an error in the request (I showed above) if this is a right request at all, I’m confused)