MCPcopy Create free account
hub / github.com/dfinity/cancan / create

Method create

src/utils/authClient.ts:22–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21 // Create a new auth client and update it's ready state
22 async create() {
23 this.authClient = await AuthClient.create();
24 await this.authClient?.isAuthenticated();
25 this.ready = true;
26 }
27
28 async login(): Promise<Identity | undefined> {
29 return new Promise(async (resolve) => {

Callers 1

useProvideAuthFunction · 0.80

Calls 1

isAuthenticatedMethod · 0.80

Tested by

no test coverage detected