context("auth")
test_that("Authorization header", {
withr::with_envvar(
setNames("xxxx", "MEDIUM_API_TOKEN"),
{
expect_equivalent(
medium_authorization_header()$headers["Authorization"],
"Bearer xxxx"
)
}
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.