diff --git a/package.json b/package.json index ab776db..f80d6c9 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,20 @@ { "name": "super-jwt", - "version": "0.0.3", - "description": "", + "version": "0.0.6", + "description": "Super-JWT helps to authenticate your users based on Superfluid streams using JSON Web Tokens (JWT)", + "author": "Salman Dabbakuti", + "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", "scripts": { "test": "mocha --r ts-node/register 'test/**/*.ts'", "build": "tsc" }, - "keywords": [], - "author": "", - "license": "ISC", + "keywords": [ + "superfluid", + "superjwt", + "superfluid-auth" + ], "dependencies": { "graphql": "^16.6.0", "graphql-request": "^5.2.0", @@ -28,5 +32,12 @@ "ts-node": "^10.9.1", "tslib": "^2.5.0", "typescript": "^5.0.3" + }, + "repository": { + "type": "git", + "url": "https://github.com/Salmandabbakuti/super-jwt.git" + }, + "bugs": { + "url": "https://github.com/Salmandabbakuti/super-jwt/issues" } } diff --git a/test.js b/test.js deleted file mode 100644 index 2e089bc..0000000 --- a/test.js +++ /dev/null @@ -1,24 +0,0 @@ -const superJWT = require("super-jwt"); - -console.log(superJWT); -const secret = "supersecret"; -async function main() { - const { token: jwtToken } = await superJWT.authenticateWithStream( - { - chain: "goerli", - sender: "0xc7203561ef179333005a9b81215092413ab86ae9", - receiver: "0x7348943c8d263ea253c0541656c36b88becd77b9", - token: "0xf2d68898557ccb2cf4c10c3ef2b034b2a69dad00" - }, - secret, - { - expiresIn: "1h" - } - ); - console.log(jwtToken); - - const decoded = superJWT.verifyToken(jwtToken, secret); - console.log(decoded); -} - -main();