Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oura_api/mod.ts>OuraOAuth#generateAuthUrl

Typescript project to interact with v2 of the Oura Ring API
Latest
method OuraOAuth.prototype.generateAuthUrl
Re-export
import { OuraOAuth } from "https://deno.land/x/oura_api@1.0.1/mod.ts";

Generates the authorization URL for the Oura OAuth2 flow.

Parameters

scopes: OAuthScope[]
  • An array of scopes to request access to (e.g., ['email', 'daily']).
optional
state: string
  • An optional state parameter for security and session management.

Returns

string

The authorization URL.