Function encodeToken

  • Encodes an authentication token as hexadecimal, prefixed by '0x'.

    Parameters

    • token: string

      the token to encode

    Returns string

    an encoded hexadecimal string