From 15f09357358fa6d363a88709c9b01eba76caba0a Mon Sep 17 00:00:00 2001 From: michalsn Date: Thu, 27 Jul 2023 16:26:19 +0200 Subject: [PATCH] change method visibility --- src/Auth0.php | 2 +- src/Config/Auth0.php | 21 +++++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/Auth0.php b/src/Auth0.php index c20303d..7f12556 100644 --- a/src/Auth0.php +++ b/src/Auth0.php @@ -75,7 +75,7 @@ public function logout() return redirect()->to($url); } - private function formatUserProfile(array $profile, bool $update = false): array + protected function formatUserProfile(array $profile, bool $update = false): array { $data = [ 'identity' => $profile['sub'], diff --git a/src/Config/Auth0.php b/src/Config/Auth0.php index 1bfed98..ace5a92 100644 --- a/src/Config/Auth0.php +++ b/src/Config/Auth0.php @@ -6,15 +6,20 @@ class Auth0 extends BaseConfig { - public ?string $domain = null; - public ?string $customDomain = null; - public ?string $clientId = null; - public ?string $clientSecret = null; - public ?string $cookieSecret = null; - public bool $cookieSecure = true; - public ?string $redirectUri = null; - public array $scope = ['openid', 'profile', 'email']; + public ?string $domain = null; + public ?string $customDomain = null; + public ?string $clientId = null; + public ?string $clientSecret = null; + public ?string $cookieSecret = null; + public bool $cookieSecure = true; + public ?string $redirectUri = null; + public array $scope = ['openid', 'profile', 'email']; + + /** + * User profile defaults + */ public string $defaultLanguage = 'pl'; + public string $defaultTimezone = 'Europe/Warsaw'; public function afterCallbackSuccess()