For the complete documentation index, see llms.txt. This page is also available as Markdown.

redivis.authorize

redivis.authorize([options]) → Promise<void>

Authenticates with Redivis. In Node.js, this logs in through the browser and caches the credentials on disk; in the browser, it opens a sign-in popup. Requests also authenticate automatically when a resource requires it, so calling this is optional — though in the browser, you may want to call it in response to a user action (e.g., a click), so that the popup isn't blocked. See Authentication.

Parameters:

options.apiToken : string An API token to use instead of logging in. The token is held in memory only.

options.scope : string | string[] The OAuth scope(s) to request.

options.forceReauthorization : boolean, default false Log in again, even if there are cached credentials.

Returns: Promise<void>

Was this helpful?