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

Method login

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

Source from the content-addressed store, hash-verified

26 }
27
28 async login(): Promise<Identity | undefined> {
29 return new Promise(async (resolve) => {
30 await this.authClient?.login({
31 identityProvider: IDENTITY_URL,
32 onSuccess: async () => {
33 resolve(this.authClient?.getIdentity());
34 },
35 });
36 });
37 }
38
39 async logout() {
40 return this.authClient?.logout({ returnTo: '/' });

Callers 1

logInFunction · 0.80

Calls 1

getIdentityMethod · 0.80

Tested by

no test coverage detected