Skip to content

Conversation

@serious-angel
Copy link
Contributor

@serious-angel serious-angel commented Sep 7, 2025

Dear Developers, Artsts,

Thank you for the marvel you do...


Are we sure it is the valid access to the variable of access token?:

'access_token' => $token['access_token'],

Considering that the $token already is a string obtained from the following vendor method?:

protected function parseAccessToken($body)
{
    return Arr::get($body, 'access_token');
}

Source

Wouldn't we get an exception in that case?:

// Socialite::with('vkid')->user();
Cannot access offset of type string on string

We may see a similar approach in the following provider:

if (is_array($token)) {
$formToken['email'] = $token['email'] ?? null;
$token = $token['access_token'];
}


Best and kind regards ✨

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