Function isBase64URL

  • check whether a string is a base64url encoded string or not

    Parameters

    • s: string

      string to be checked

    Returns boolean

    true if the string is a Base64URL encoded string

    See

    isBase64

    Example

    isBase64URL("YWE") -> true
    isBase64URL("YW-") -> true
    isBase64URL("YW+") -> false