diff --git a/src/Authenticator/OAuth2Authenticator.php b/src/Authenticator/OAuth2Authenticator.php index 96986ff..d1e8667 100644 --- a/src/Authenticator/OAuth2Authenticator.php +++ b/src/Authenticator/OAuth2Authenticator.php @@ -100,7 +100,7 @@ public function authenticate(ServerRequestInterface $request): ResultInterface $usernameField = (string)$this->getConfig(sprintf('providers.%s.map.provider_username', $provider)); $data = [ 'auth_provider' => $provider, - 'provider_username' => Hash::get($connect, sprintf('user.%s', $usernameField)), + 'provider_username' => (string)Hash::get($connect, sprintf('user.%s', $usernameField)), 'access_token' => Hash::get($connect, 'token.access_token'), 'provider_userdata' => (array)Hash::get($connect, 'user'), 'id_token' => Hash::get($connect, 'token.id_token'),