Skip to content

Commit

Permalink
Merge pull request #69 from auth0/dev
Browse files Browse the repository at this point in the history
Fix array notation
  • Loading branch information
glena committed May 21, 2015
2 parents 093d2bb + 9ea5fb8 commit a7bd9ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WP_Auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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(){
Expand Down Expand Up @@ -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')) {
Expand Down

0 comments on commit a7bd9ad

Please sign in to comment.