def base64url_encode(input):
return base64.urlsafe_b64encode(input).replace(b'<STR_LIT:=>', b'<STR_LIT>')<EOL>
Helper method to base64url_encode a string.

    Args:
        input (str): A base64url_encoded string to encode.