2.1.0 • Published 11 months ago

@projectlibertylabs/siwf v2.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

Sign In With Frequency (SIWF) V2 JavaScript Library

The NPM package @projectlibertylabs/siwf@v2 offers both CommonJS and ESM exports.

Install

  • NPM: npm i @projectlibertylabs/siwf@v2
  • Yarn: yarn add @projectlibertylabs/siwf@v2

Documentation

See Markdown/GitHub Docs or Live Docs.

JS API Functions

FunctionDescription
generateAuthenticationUrlGenerates the signed request for the authentication flow
getLoginResultFetch and extract the Result of the Login
hasChainSubmissionsChecks to see if there are any chain submissions in the given result
validateSiwfResponseTakes a response payload and validates it
generateSignedRequestGenerates the signed payload for the authentication flow using a keypair
buildSignedRequestBuilds the signed request for the authentication flow using the signature and public key
generateEncodedSignedRequestGenerates the encoded signed payload for the authentication flow using a keypair
encodeSignedRequestEncodes a signed request for the authentication flow as a base64url string
decodeSignedRequestDecodes a base64url encoded signed request for the authentication flow
generateRequestSigningDataGenerates the hex of the payload for signing

JS API Constants

ConstantsDescription
VerifiedEmailAddressCredentialRequest for a verified email address
VerifiedPhoneNumberCredentialRequest for a verified SMS/Phone Number
VerifiedGraphKeyCredentialRequest for a the private graph encryption key

JS API Types

Types are included with the exports for the package

Development

Library is published on merge to main with a development tag 0.0.0-[SHA:6]. Releases are made via GitHub Releases with tags in the style: vX.Y.Z.

0.0.0-ce36a6

11 months ago

0.0.0-d2649a

11 months ago

2.1.0

11 months ago

0.0.0-c6cbb7

11 months ago

0.0.0-a8b780

11 months ago

0.0.0-c390f9

11 months ago

0.0.0-2b93f2

11 months ago

0.0.0-df5630

12 months ago

0.0.0-281782

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

0.0.0-90407f

12 months ago

2.0.0-rc1

12 months ago

2.0.3

12 months ago

2.0.2

12 months ago

2.0.5

12 months ago

2.0.4

12 months ago

0.0.0-9ad33a

12 months ago

2.0.6

12 months ago

0.0.0-1c8c45

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

0.0.0-cc7328

12 months ago

0.0.0-87b24c

12 months ago

0.0.0-9425ab

12 months ago

0.0.0-df5ed0

12 months ago

0.0.0-cf2bb3

12 months ago

0.0.0-b9d308

12 months ago

0.0.0-93caa4

12 months ago

0.0.0-3b8992

12 months ago

0.0.0-e4f59f

12 months ago

0.0.0-913df5

12 months ago

0.0.0-f3a3df

12 months ago

0.0.0-939e4e

12 months ago

0.0.0-8078ec

12 months ago

0.0.0-6f1780

12 months ago

0.0.0-dc4314

12 months ago

1.1.2

1 year ago

0.0.0-bade15

1 year ago