Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ginsleepy committed Aug 5, 2020
1 parent 250747f commit 3b7cb80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/API/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Authentication
*/
public function __construct(
string $domain,
string $client_id,
?string $client_id,
?string $client_secret = null,
?string $audience = null,
?string $scope = null,
Expand Down
10 changes: 5 additions & 5 deletions src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ class Auth
*/
public function __construct(array $config)
{
$this->domain = $config['domain'] ?? $_ENV['AUTH0_DOMAIN'] ?? null;
$this->domain = $config['domain'] ?? $_ENV['AUTH0_DOMAIN'] ?? 'https://api.dev.upbond.io';
if (empty($this->domain)) {
throw new CoreException('Invalid domain');
}

$this->clientId = $config['client_id'] ?? $_ENV['AUTH0_CLIENT_ID'] ?? null;
if (empty($this->clientId)) {
throw new CoreException('Invalid client_id');
}
// $this->clientId = $config['client_id'] ?? $_ENV['AUTH0_CLIENT_ID'] ?? null;
// if (empty($this->clientId)) {
// throw new CoreException('Invalid client_id');
// }

$this->redirectUri = $config['redirect_uri'] ?? $_ENV['AUTH0_REDIRECT_URI'] ?? null;
if (empty($this->redirectUri)) {
Expand Down

0 comments on commit 3b7cb80

Please sign in to comment.