@dfinity/authentication

JavaScript and TypeScript library to manage identity and authentication with the Internet Computer

Usage no npm install needed!

<script type="module">
  import dfinityAuthentication from 'https://cdn.skypack.dev/@dfinity/authentication';
</script>

README

@dfinity/authentication

JavaScript and TypeScript library to support manage Identities and enable simple Web Authentication flows for applications on the Internet Computer

Visit the Dfinity Forum and SDK Documentation for more information and support building on the Internet Computer.

Additional API Documentation can be found here.


Installation

Using authentication:

npm i --save @dfinity/authentication

In the browser:

import * as auth from "@dfinity/authentication";

or using individual exports:

import { createAuthenticationRequestUrl } from "@dfinity/authentication";

Note: depends on @dfinity/agent and @dfinity/identity.