MCPcopy
hub / github.com/realworld-apps/realworld / getToken

Function getToken

specs/e2e/helpers/debug.ts:36–38  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

34 * Returns null if no token is set or debug interface is not available.
35 */
36export async function getToken(page: Page): Promise<string | null> {
37 return page.evaluate(() => window.__conduit_debug__?.getToken() ?? null);
38}
39
40/**
41 * Get the current authentication state from the app's debug interface.

Callers 3

auth.spec.tsFile · 0.90
settings.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected