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

x/oura_api/mod.ts>OuraOAuth#exchangeCodeForToken

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

Exchanges an authorization code for an access token and refresh token.

Parameters

code: string
  • The authorization code received from Oura.

Returns

Promise<OAuth2TokenResponse>

A promise that resolves with the token response.