Gajus\Fuss\SignedRequest::decodeBase64Url PHP Method

decodeBase64Url() private static method

The incoming token is encoded using modified base64 encoding for URL, where +/ is replaced with -_ to avoid percent-encoded hexadecimal representation.
See also: http://en.wikipedia.org/wiki/Base64#URL_applications
See also: http://php.net/manual/en/function.base64-encode.php#103849
private static decodeBase64Url ( string $input ) : string
$input string
return string
    private static function decodeBase64Url($input)
    {
        return base64_decode(str_pad(strtr($input, '-_', '+/'), strlen($input) % 4, '=', STR_PAD_RIGHT));
    }