File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
firebase-vscode/src/data-connect Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ export class DataConnectService {
146146 return {
147147 impersonate :
148148 userMock . kind === UserMockKind . AUTHENTICATED
149- ? { authClaims : JSON . parse ( userMock . claims ) }
150- : { unauthenticated : true } ,
149+ ? { authClaims : JSON . parse ( userMock . claims ) , includeDebugDetails : true }
150+ : { unauthenticated : true , includeDebugDetails : true } ,
151151 } ;
152152 }
153153
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ export interface ExecuteGraphqlRequest {
220220 query : string ;
221221 operationName ?: string ;
222222 variables ?: { [ key : string ] : string } ;
223- extensions ?: { impersonate ?: Impersonation } ;
223+ extensions ?: { impersonate ?: Impersonation ; includeDebugDetails ?: boolean } ;
224224}
225225
226226export interface GraphqlResponse {
@@ -242,9 +242,11 @@ export const isGraphQLResponseError = (g: any): g is GraphqlResponseError => !!g
242242
243243interface ImpersonationAuthenticated {
244244 authClaims : any ;
245+ includeDebugDetails ?: boolean ;
245246}
246247interface ImpersonationUnauthenticated {
247248 unauthenticated : boolean ;
249+ includeDebugDetails ?: boolean ;
248250}
249251export type Impersonation = ImpersonationAuthenticated | ImpersonationUnauthenticated ;
250252
You can’t perform that action at this time.
0 commit comments