Description Usage Arguments Details Value See Also
helper function that extracts the token from the request object based on the token_location argument.
1 | get_token_from_req(req, token_location)
|
req |
plumber request object. |
token_location |
character. Location of token. Either "header" or "cookie". See details. |
Specify "header" for the token_location
argument if the token
is stored in the HTTP Authorization header. Specify "cookie" if the token is stored as an
encrypted session cookie called "token" (note that unencrypted cookies are not supported).
See the plumber docs
for how to set an encrypted cookie.
token
https://www.rplumber.io/docs/rendering-and-output.html#encrypted-cookies
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.