Skip to contents

[Deprecated]

auth_check() has been renamed to auth_validate() for clarity. Use auth_validate() instead.

Usage

auth_check(token, project_id = NULL, realm = "counts")

Arguments

token

The user's token (with or without "Bearer " prefix).

project_id

Optional project ID to check membership. If NULL, only checks authentication status.

realm

Character. The realm to validate against (default "counts").

Value

TRUE (with a "user_data" attribute) on success, FALSE on failure.

See also

auth_validate() for the current version

Examples

if (FALSE) { # \dontrun{
# Use auth_validate() instead:
auth_validate("SOMERANDOMTOKEN")
} # }