制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Authentication library for Internet Computer web apps.
Still using
@dfinity/auth-client? Migrate to@icp-sdk/auth!
npm install @icp-sdk/auth @icp-sdk/core
This package is only meant to be used in browser environments.
import { AuthClient } from '@icp-sdk/auth/client';
const authClient = new AuthClient();
await authClient.signIn();
const identity = await authClient.getIdentity();
console.log('Signed in as', identity.getPrincipal().toText());
await authClient.signOut();
Contributions are welcome! Please see the contribution guide for more information.
This project is licensed under the Apache-2.0 license.