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

x/oura_api/src/utilsOAuth.ts>refreshToken

Typescript project to interact with v2 of the Oura Ring API
Latest
function refreshToken
import { refreshToken } from "https://deno.land/x/oura_api@1.0.1/src/utilsOAuth.ts";

Refreshes the access token using the refresh token.

Parameters

clientId: string
  • Your Oura API client ID.
clientSecret: string
  • Your Oura API client secret.
refreshToken: string
  • The refresh token received during the initial token exchange.

Returns

A promise that resolves with the new token response.