auth_basic function

Generate Basic authentication strings

Generate Basic authentication strings

Combine usernames with passwords with colons, and generate base64-encoded strings to be used for user authentication.

auth_basic(user, password)

Arguments

  • user: A vector of usernames.
  • password: A vector of passwords.

Returns

A character vector of encoded credentials.

Examples

servr::auth_basic("foo", "B@R")
  • Maintainer: Yihui Xie
  • License: GPL
  • Last published: 2024-10-04