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

support null union_id #4

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

IsraelOrtuno
Copy link
Contributor

TikTok does not provide the union_id field when using "business" scopes and this causes an Exception as this key does not exist in the response. Scope causing this issue:

user.info.stats
user.account.type`
user.insights
video.insights

And maybe other scopes... This PR takes care of this situation by populating the field with null when union_id is missing

@atymic atymic merged commit 7fdcb44 into SocialiteProviders:master Aug 7, 2023
@atymic atymic changed the title Fix error when missing union_id from TikTok's response support null union_id Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants