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

x/oura_api/mod.ts>OuraOAuth#refreshAccessToken

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

Refreshes an expired OAuth2 access token using a refresh token.

Parameters

suppliedRefreshToken: string
  • The refresh token obtained during the initial OAuth2 authorization.

Returns

Promise<OAuth2TokenResponse>

A promise that resolves with a new access token and (potentially) a new refresh token.