Skip to content

Extend Token with accessTokenResponseBody - #246

Open
Cellard wants to merge 3 commits into
SocialiteProviders:masterfrom
Cellard:master
Open

Cellard wants to merge 3 commits into
SocialiteProviders:masterfrom
Cellard:master

Conversation

@Cellard

@Cellard Cellard commented Aug 14, 2026 •

Copy link
Copy Markdown

Laravel\Socialite\*\User extends Laravel\Socialite\AbstractUser with token information.

SocialiteProviders\Manager extends Laravel\Socialite\*\User with accessTokenResponseBody property (raw token response).

It is very useful as response may contain some extra attributes.

I think, that SocialiteProviders\Manager should extend \Laravel\Socialite\Two\Token the same way.

@Cellard
Cellard marked this pull request as ready for review August 14, 2026 16:55
Comment thread src/OAuth2/AbstractProvider.php
Comment thread src/OAuth2/Token.php Outdated
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