Skip to content

Commit

Permalink
Merge branch 'realise-23-fix' into 'main'
Browse files Browse the repository at this point in the history
hotfix: realise 3.23.0 fixes

See merge request ecommerce_modules/cms/wordpress/wordpress!31
  • Loading branch information
vermorag committed Oct 16, 2024
2 parents 96b5d5f + d9c09f0 commit 016cdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/CoreTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static function getBaseUrlFromToken(string $token): ?string
{
$arToken = explode('.', $token);

return json_decode(base64_decode($arToken[2]), true, 512, JSON_THROW_ON_ERROR)['endpoint'] ?? null;
return json_decode(base64_decode(count($arToken) - 1), true, 512, JSON_THROW_ON_ERROR)['endpoint'] ?? null;
}

/**
Expand Down

0 comments on commit 016cdf9

Please sign in to comment.