import { OAuth2GrantBase } from "https://deno.land/x/oauth2_client@v0.3.0/src/grant_base.ts";
Tries to build an AuthError from the response and defaults to AuthServerResponseError if that fails.
Parameters
response: Response
Returns
Promise<OAuth2ResponseError | TokenResponseError>