build_token {shiny.telemetry} | R Documentation |
Builds hash for a call
Description
Function that takes creates a signature for the values
using a secret.
Usage
build_token(values, secret = NULL)
Arguments
values |
R object that is going to be signed |
secret |
string that contains the shared secret to sign the communication. It can be NULL on both telemetry and in plumber API to disable this communication feature |
Details
This is used in shiny.telemetry, but also externally with the Plumber endpoint.
Value
A string that contains an hash to uniquely identify the parameters.
Examples
build_token(values = list(list(1, 2, 3), 2, 2, 3, "bb"))
build_token(values = list(list(1, 2, 3), 1, 2, 3, "bb"))
build_token(values = list(list(1, 2, 3), 1, 2, 3, "bb"), secret = "abc")
build_token(values = list(list(1, 2, 3), 1, 2, 3, "bb"), secret = "abd")
[Package shiny.telemetry version 0.3.0 Index]