Skip to contents

Logging out means clearing all session management for the user. When realm is NULL (default), all realms are logged out. When a specific realm is provided, only that realm is logged out.

Usage

auth_logout(realm = NULL)

Arguments

realm

Character. The realm to log out of. If NULL (default), all realms are logged out.

See also

auth_login() to authenticate, auth_me() to inspect the current user, is_auth() to check authentication status

Examples

if (FALSE) { # \dontrun{
auth_logout()
auth_logout(realm = "counts")
} # }