1.0.14 • Published 4 months ago

@hypha-dao/ual-hypha v1.0.14

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

UAL Hypha Authenticator 🔐

UAL implementation of Hypha Authenticator for Hypha Wallet.

Overview

The Universal Authenticator Library creates a single universal API which allows app developers to integrate multiple signature providers with just a few lines of code. This is done through custom Authenticators.

An Authenticator represents the bridge between UAL and a custom signing method.

A developer that wishes to add support for their signature provider to UAL must create an Authenticator by implementing 2 classes. An Authenticator and a User.

The Authenticator class represents the business logic behind the renderer, handles login/logout functionality and initializes the User class.

Logging in returns 1 or more User objects. A User object provides the ability for an app developer to request the app User sign a transaction using whichever authenticator they selected when logging in.

Installation

npm i ual-hypha ( or yarn add ual-hypha )

Usage

In your main app js file

const telosChain = {
  chainId: "4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11",
  rpcEndpoints: [
    {
      protocol: "https",
      host: "api.telosfoundation.io",
      port: "443",
    },
  ],
};

const hypha = new HyphaAuthenticator([telosChain], { appName: "Hypha App" });
1.0.14

4 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.9

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago