mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
addressed greptile comment
This commit is contained in:
@@ -252,6 +252,10 @@ class X extends OAuth2
|
||||
|
||||
$data = OpenSSL::encrypt($verifier, OpenSSL::CIPHER_AES_128_GCM, $key, OPENSSL_RAW_DATA, $iv, $tag);
|
||||
|
||||
if ($data === false || $tag === null) {
|
||||
throw new \RuntimeException('Failed to encrypt PKCE verifier.');
|
||||
}
|
||||
|
||||
return [
|
||||
'data' => $this->base64UrlEncode($data),
|
||||
'iv' => \bin2hex($iv),
|
||||
|
||||
Reference in New Issue
Block a user