firstName = $data['foo']; return $user; } /** * @inheritDoc */ public function userUid($data, TokenCredentials $tokenCredentials) { return isset($data['id']) ? $data['id'] : null; } /** * @inheritDoc */ public function userEmail($data, TokenCredentials $tokenCredentials) { return isset($data['contact_email']) ? $data['contact_email'] : null; } /** * @inheritDoc */ public function userScreenName($data, TokenCredentials $tokenCredentials) { return isset($data['username']) ? $data['username'] : null; } }