Skip to content

Commit

Permalink
Auth0JWT encode fix to allow scope with null custom payload
Browse files Browse the repository at this point in the history
  • Loading branch information
deboorn committed May 27, 2015
1 parent 45f7718 commit 0f4aba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth0JWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function encode($client_id, $client_secret, $scopes = null, $custo
$payload["scopes"] = $scopes;
}

if ($scopes) {
if ($custom_payload) {
$custom_payload = array_merge($custom_payload, $payload);
}

Expand Down

0 comments on commit 0f4aba9

Please sign in to comment.