@othent/warp-contracts-plugin-jwt-verify

1.0.401 • Public • Published

Warp Contracts JWT verify plugin

This plugin attaches the .verify() function from the jsonwebtoken library to the SmartWeave global object.

Installation

npm i @othent/warp-contracts-plugin-jwt-verify

It can be then used inside the contract like this:

const verify = new SmartWeave.extensions.verify();

It can be then used in deployment like this:

import { WarpFactory } from 'warp-contracts';
import { DeployPlugin, ArweaveSigner } from 'warp-contracts-plugin-deploy';
import { JWTVerifyPlugin } from '@othent/warp-contracts-plugin-jwt-verify';

const warp = WarpFactory.forMainnet().use(new DeployPlugin()).use(new JWTVerifyPlugin());

Requires warp-contract SDK ver. min. 1.2.18.

Contact

If you have any questions or issues with the Othent Library, please contact us at hello@othent.io or open an issue in the GitHub repository.

License

The Othent Library is licensed under the MIT License. Please see the LICENSE file for more information.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.401
    1
    • latest

Version History

Package Sidebar

Install

npm i @othent/warp-contracts-plugin-jwt-verify

Weekly Downloads

1

Version

1.0.401

License

ISC

Unpacked Size

16.3 kB

Total Files

7

Last publish

Collaborators

  • lorimer