From 9ea5fb8787b01e6e9c23fc0dc523b0f8233a3d0d Mon Sep 17 00:00:00 2001 From: German Lena Date: Thu, 21 May 2015 11:33:01 -0300 Subject: [PATCH] fix array notation --- WP_Auth0.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WP_Auth0.php b/WP_Auth0.php index e4876f19..0b5696fe 100644 --- a/WP_Auth0.php +++ b/WP_Auth0.php @@ -2,7 +2,7 @@ /** * Plugin Name: Wordpress Auth0 Integration * Description: Implements the Auth0 Single Sign On solution into Wordpress - * Version: 1.2.4 + * Version: 1.2.5 * Author: Auth0 * Author URI: https://auth0.com */ @@ -12,7 +12,7 @@ define('WPA0_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__) )); define('WPA0_LANG', 'wp-auth0'); define('AUTH0_DB_VERSION', 2); -define('WPA0_VERSION', '1.2.4'); +define('WPA0_VERSION', '1.2.5'); class WP_Auth0 { public static function init(){ @@ -646,7 +646,7 @@ public static function implicitLogin() { try { // Decode the user - $decodedToken = \JWT::decode($token, $secret, ['HS256']); + $decodedToken = \JWT::decode($token, $secret, array('HS256')); // validate that this JWT was made for us if ($decodedToken->aud != WP_Auth0_Options::get('client_id')) {