Skip to contents

Switch the authenticated user to a different project without re-entering credentials. The user must have access to the target project (e.g., via related accounts). A new token is issued for the target project, replacing the current one.

Usage

auth_switch_project(abbreviation, realm = "counts")

Arguments

abbreviation

Character. The project abbreviation to switch to (e.g., "dept", "scl").

realm

Character. The realm to switch on (default "counts").

Value

Invisible NULL

See also

auth_me() to check current project, project_id() to get the current project ID

Examples

if (FALSE) { # \dontrun{
auth_switch_project("dept")
auth_switch_project("dept", realm = "telemetry")
} # }