Function decodeToken

  • Converts a hex string (presumably encoded previously) to an authentication token, prefixed with 'token '

    Parameters

    • hex: string

      hexadecimal string to convert

    Returns string

    a string 'token {token}'