MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / getCurrentUser

Method getCurrentUser

console/e2e-tests/util.ts:368–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366 }
367
368 async getCurrentUser(): Promise<{ id: string; tenantId: string }> {
369 const response = await this.fronteggRequest(
370 `/identity/resources/users/v2/me`,
371 );
372 assert(response);
373 const { id, tenantId } = await response.json();
374 return { id, tenantId };
375 }
376
377 async listAllKeys() {
378 const { id, tenantId } = await this.getCurrentUser();

Callers 4

listAllKeysMethod · 0.95
platform.spec.tsFile · 0.80

Calls 3

fronteggRequestMethod · 0.95
assertFunction · 0.85
jsonMethod · 0.45

Tested by

no test coverage detected