Skip to content

About

Authentication library for Internet Computer web apps

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

@icp-sdk/auth

NPM Version License

Authentication library for Internet Computer web apps.

Still using @dfinity/auth-client? Migrate to @icp-sdk/auth!

Installation

npm install @icp-sdk/auth @icp-sdk/core

This package is only meant to be used in browser environments.

Usage

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();

Documentation

Contributing

Contributions are welcome! Please see the contribution guide for more information.

License

This project is licensed under the Apache-2.0 license.

About

Authentication library for Internet Computer web apps

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages