2.1.0 • Published 10 months ago

@projectlibertylabs/siwf v2.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 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

10 months ago

0.0.0-d2649a

10 months ago

2.1.0

10 months ago

0.0.0-c6cbb7

10 months ago

0.0.0-a8b780

10 months ago

0.0.0-c390f9

10 months ago

0.0.0-2b93f2

11 months ago

0.0.0-df5630

11 months ago

0.0.0-281782

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

0.0.0-90407f

11 months ago

2.0.0-rc1

11 months ago

2.0.3

11 months ago

2.0.2

11 months ago

2.0.5

11 months ago

2.0.4

11 months ago

0.0.0-9ad33a

11 months ago

2.0.6

11 months ago

0.0.0-1c8c45

11 months ago

2.0.1

11 months ago

2.0.0

11 months ago

0.0.0-cc7328

11 months ago

0.0.0-87b24c

11 months ago

0.0.0-9425ab

11 months ago

0.0.0-df5ed0

11 months ago

0.0.0-cf2bb3

11 months ago

0.0.0-b9d308

11 months ago

0.0.0-93caa4

11 months ago

0.0.0-3b8992

11 months ago

0.0.0-e4f59f

11 months ago

0.0.0-913df5

11 months ago

0.0.0-f3a3df

11 months ago

0.0.0-939e4e

11 months ago

0.0.0-8078ec

11 months ago

0.0.0-6f1780

11 months ago

0.0.0-dc4314

11 months ago

1.1.2

1 year ago

0.0.0-bade15

1 year ago