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

x/oauth4webapi/build/index.d.ts>processRefreshTokenResponse

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
function processRefreshTokenResponse
import { processRefreshTokenResponse } from "https://deno.land/x/oauth4webapi@v2.17.0/build/index.d.ts";

Validates Refresh Token Grant !Response instance to be one coming from the AuthorizationServer.token_endpoint | as.token_endpoint.

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

response: Response

Resolved value from refreshTokenGrantRequest.

Returns

Resolves with an object representing the parsed successful response, or an object representing an OAuth 2.0 protocol style error. Use isOAuth2Error to determine if an OAuth 2.0 error was returned.