Update src/Appwrite/Auth/OAuth2/Auth0.php

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Aditya Oberai 2022-04-03 21:57:28 +05:30 committed by GitHub
parent 0c09d73a20
commit 3397036224
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,7 @@ class Auth0 extends OAuth2
protected function getAppSecret(): array
{
try {
$secret = \json_decode($this->appSecret, true);
$secret = \json_decode($this->appSecret, true, 512, JSON_THROW_ON_ERROR);
} catch (\Throwable $th) {
throw new \Exception('Invalid secret');
}