Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

Commit

Permalink
Scoped package
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Aug 1, 2020
1 parent 2faa6e3 commit cba790f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ It is primarily designed to be used with the Web-Auth Framework from Spomky-Labs
With Yarn:

```sh
yarn add webauthn-helper
yarn add @web-auth/webauthn-helper
```
# Usage

## Registration

```js
// Import the tool(s) ou need
import {useRegistration} from 'webauthn-helper';
import {useRegistration} from '@web-auth/webauthn-helper';

// We want to register new authenticators
const register = useRegistration({
Expand All @@ -37,7 +37,7 @@ register({
## Authentication

```js
import {useLogin} from 'webauthn-helper';
import {useLogin} from '@web-auth/webauthn-helper';

const login = useLogin({
loginUrl: '/api/login',
Expand All @@ -57,7 +57,7 @@ login({
For both `useLogin` and `useRegistration` methods, you can add custom header parameters.

```js
import {useLogin} from 'webauthn-helper';
import {useLogin} from '@web-auth/webauthn-helper';

const login = useLogin({
loginUrl: '/api/login',
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webauthn-helper",
"version": "0.0.9",
"name": "@web-auth/webauthn-helper",
"version": "0.0.10",
"description": "JS functions to ease the use of the Spomky-Labs library and Symfony bundle",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit cba790f

Please sign in to comment.