From 320cbb11eea5aa288bf93242a5a3a48ea6ce5528 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Wed, 1 Jun 2022 07:45:19 -0400 Subject: [PATCH] Added Firebase JWT and secret generation --- www/TEST/client_secret.php | 29 +++++++++++++++++++++++++++++ www/composer.json | 5 +++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 www/TEST/client_secret.php diff --git a/www/TEST/client_secret.php b/www/TEST/client_secret.php new file mode 100644 index 00000000..1d233c4d --- /dev/null +++ b/www/TEST/client_secret.php @@ -0,0 +1,29 @@ + $teamId, + 'iat' => $iat, + 'exp' => $exp, + 'aud' => $aud, + 'sub' => $sub, +], $keyContent, 'ES256', $keyId); + +// Write the snippet in a method, return the value from that method + +// You + +?> \ No newline at end of file diff --git a/www/composer.json b/www/composer.json index c5cef377..1a32a3c2 100644 --- a/www/composer.json +++ b/www/composer.json @@ -13,10 +13,11 @@ "require": { "php": ">=5.3.7", "facebook/graph-sdk" : "^5.7", - "firebase/php-jwt": "^5.5.1", + "firebase/php-jwt": "^6.2", "phpseclib/phpseclib": "^3.0", "hybridauth/hybridauth" : "~3.7.1", - "google/apiclient":"^2.12.1" + "google/apiclient":"^2.12.1", + "paragonie/sodium_compat": "^1.17" }, "suggest": { "paragonie/random_compat": "Provides better randomness in PHP 5.x"