try_auth_header | R Documentation |
Add Authorization header
try_auth_header(.req, token = NULL)
.req |
An |
token |
(character) a Bearer token. optional. if nothing passed, we look for the env var PROOF_TOKEN |
An httr2_request
S3 class adding an HTTP header for
Authorization
with the value in token
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.