Skip to contents

This function is used only in the plumber endpoints, to prevent them being called by unauthorized users.

Usage

is_user_authorized(secret = NULL)

Arguments

secret

Environment variable PKGCHECK_TOKEN sent from bot.

Value

Logical value indicating whether or not a user is authorized.