Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CredentialsClient

import type { CredentialsClient } from "https://googleapis.deno.dev/v1/keep:v1.ts";

Defines the root interface for all clients that generate credentials for calling Google APIs. All clients should implement this interface.

interface CredentialsClient {
projectId?: string | null;
getRequestHeaders(url?: string): Promise<Record<string, string>>;
}

§Properties

§
projectId?: string | null
[src]

The project ID corresponding to the current credentials if available.

§Methods

§
getRequestHeaders(url?: string): Promise<Record<string, string>>
[src]

The main authentication interface. It takes an optional url which when present is the endpoint being accessed, and returns a Promise which resolves with authorization header fields.

The result has the form: { Authorization: 'Bearer <access_token_value>' }

@param url

The URI being authorized.