cached_access_code retrieves a cached Notion access token from the default cache directory, directory defined by environment variable, or user defined path

cached_access_code(path = NULL)

Arguments

path

A path to the local directory that contains the Notion access token. If left NULL, it will be set as the default cache directory or search for the environment variable NOTIONR_CACHE.

Value

A character string that is the user's Notion access token. If no access token exists, an error will be thrown