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()