Skip to content

fix: return save_account result from OAuth storage callback#126

Merged
chubes4 merged 1 commit into
mainfrom
fix-instagram-graph-api-auth
Apr 23, 2026
Merged

fix: return save_account result from OAuth storage callback#126
chubes4 merged 1 commit into
mainfrom
fix-instagram-graph-api-auth

Conversation

@chubes4

@chubes4 chubes4 commented Apr 23, 2026

Copy link
Copy Markdown
Member

The storage_fn callback must return a boolean for OAuth2Handler to recognize the account data was saved successfully. Without a return value, $stored evaluates to null (falsy), triggering 'Failed to save authentication data.'

The storage_fn callback must return a boolean for OAuth2Handler
to recognize the account data was saved successfully. Without a
return value, $stored evaluates to null (falsy), triggering
"Failed to save authentication data."
@chubes4 chubes4 merged commit efb7d9d into main Apr 23, 2026
1 check passed
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.

1 participant