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

Impersonation

import type { Impersonation } from "https://googleapis.deno.dev/v1/firebasedataconnect:v1beta.ts";

Impersonation configures the Firebase Auth context to impersonate.

interface Impersonation {
authClaims?: {
[key: string]: any;
}
;
unauthenticated?: boolean;
}

§Properties

§
authClaims?: {
[key: string]: any;
}
[src]

Evaluate the auth policy with a customized JWT auth token. Should follow the Firebase Auth token format. https://firebase.google.com/docs/rules/rules-and-auth For example: a verified user may have auth_claims of {"sub": , "email_verified": true}

§
unauthenticated?: boolean
[src]

Evaluate the auth policy as an unauthenticated request. Can only be set to true.