0.2.4-rc1 • Published 7 months ago

blockauth-sdk-react v0.2.4-rc1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
7 months ago

blockauth-sdk-react

This is a SDK-react for the BlockAuth project. It is a React component library that uses the SDK to interact with the BlockAuth smart contracts and Websocket server.

pipeline status coverage report Latest Release

How to use?

Use the official documentation at block-auth.io to learn how to use the SDK.

Connecting using credentials

After picking your preferred client, you are ready to make your first call to the Protocol SDK. Below is an example of how to connect your users with the BlockAuth SDK using React. We will focus the example over 2 main components FlowBlockAuth and DropdownProfile that will help you to connect your users with the BlockAuth SDK.

User actions 1/3: Click on button

Component which starts the sign in/sign up flows

blockauth-sdk-react

User actions 2/3: Connect with a service

before connectafter connect
blockauth-sdk-reactblockauth-sdk-react

User actions 3/3: Authorize Log In

Component which shows the user profile and allows to log out

blockauth-sdk-react

Development

Install dependencies

  npm install

CI/CD

  npm run ci

Start the development server

  npm run dev

After making changes to the code, run the following command to format the code, run the linter, and start the development server:

  npm run css && npm run lint && npm run format && npm run dev

NPM Scripts

ScriptDescription
devStarts the development server
cssBuilds the CSS
css:devBuilds the CSS in development mode
testRuns the tests and generates a coverage report
lintRuns the linter
lint:fixRuns the linter and fixes the errors
formatFormats the code
buildBuilds the app for production
previewBuilds the app for production and previews it locally
ciRuns the tests, linter, and code formatter
storiesStarts the Storybook server
stories:buildBuilds the Storybook app for production
docsStarts the documentation server
docs:buildBuilds the documentation app for production
cleanRemoves dist, dist-stories, dist-docs, package-lock.json, .coverage and node_modules

Authors

Block-Auth.io Team

0.2.4-rc1

7 months ago

0.2.4

7 months ago

0.2.1

7 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.1.50

7 months ago

0.1.49

8 months ago

0.1.47

8 months ago

0.1.48

8 months ago

0.1.45-rc1

8 months ago

0.1.46-rc1

8 months ago

0.1.45

8 months ago

0.1.46

8 months ago

0.1.44

8 months ago

0.1.43-rc2

8 months ago

0.1.41

8 months ago

0.1.42

8 months ago

0.1.43

8 months ago

0.1.34-rc.0

8 months ago

0.1.38

8 months ago

0.1.39

8 months ago

0.1.34

8 months ago

0.1.35

8 months ago

0.1.37

8 months ago

0.1.43-rc1

8 months ago

0.1.31

9 months ago

0.1.32

9 months ago

0.1.33

9 months ago

0.1.27

9 months ago

0.1.28

9 months ago

0.1.29

9 months ago

0.1.25

9 months ago

0.1.26

9 months ago

0.1.23

10 months ago

0.1.24

10 months ago

0.1.22

10 months ago

0.1.21

10 months ago

0.0.40

12 months ago

0.0.41

12 months ago

0.1.11

11 months ago

0.1.12

11 months ago

0.1.14

11 months ago

0.1.15

11 months ago

0.0.39

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.8

12 months ago

0.1.7

12 months ago

0.1.9

12 months ago

0.1.4

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.16

11 months ago

0.1.17

11 months ago

0.1.18

11 months ago

0.1.19

11 months ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.34

1 year ago

0.0.35

1 year ago

0.0.36

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.14

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.2

1 year ago