0.1.19 • Published 2 years ago

@proton/ual-webauth v0.1.19

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

UAL for WebAuth

This authenticator is meant to be used with WebAuth, Proton and Universal Authenticator Library. When used in combination with them, it gives developers the ability to request transaction signatures through Anchor using the common UAL API.

Supported Environments

  • The WebAuth Authenticator only supports both Desktop and Mobile environments

Getting Started

yarn add @proton/ual-webauth

Dependencies

You must use one of the UAL renderers below.

React - ual-reactjs-renderer PlainJS - ual-plainjs-renderer

Basic usage and configuration with React

import { WebAuth } from '@proton/ual-webauth'
import { UALProvider, withUAL } from 'ual-reactjs-renderer'

const proton = {
  chainId: '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0',
  rpcEndpoints: [{
    protocol: 'https',
    host: 'proton.eoscafeblock.com',
    port: '443',
  }]
}

const App = (props) => <div>{JSON.stringify(props.ual)}</div>
const AppWithUAL = withUAL(App)

const webauth = new WebAuth([proton], {
  transportOptions: {
    requestAccount: 'taskly'
  },
  selectorOptions: {
    appName: "Taskly"
  }
})

<UALProvider chains={[proton]} authenticators={[webauth]} appName='Taskly'>
  <AppWithUAL />
</UALProvider>

License

MIT

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago