Skip to content

Commit 011190a

Browse files
committed
adjusted config for initializing Auth0\SDK\Auth0
1 parent c809150 commit 011190a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Auth0/Login/Auth0Service.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ public function __construct(
6666

6767
$auth0Config['cache_handler'] = $cache;
6868

69+
if(isset($auth0Config['api_identifier'])) {
70+
// Auth0\SDK\Auth0 is using `audience` to create a login link.
71+
$auth0Config['audience'] = $auth0Config['api_identifier'];
72+
}
73+
6974
$this->auth0Config = $auth0Config;
7075
$this->auth0 = new Auth0($auth0Config);
7176
}

0 commit comments

Comments
 (0)