
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
jwt-luau
LuaU/roblox-ts
fork of x25/luajwt that works with Roblox. Currently only supports symmetric HS(256/384/512).
Wrote this to verify Metrik tokens in our SDK. This is not a full implementation of the JWT spec, but it should be enough for most use cases.
roblox-ts
npm install @rbxts/jwt
jwt = "metrik-tech/jwt@0.2.1"
rbxm
/rbxmx
Download from Releases page. Latest release can be found here
import { decode, verify, sign } from "@rbxts/jwt";
// sign jwt
const jwt = sign({ foo: "bar", exp: 1893481200 }, "secret");
// sign jwt with algorithm
const hs483jwt = sign({ foo: "bar", exp: 1893481200 }, "secret", "HS384");
// verify jwt
const isValid = verify(jwt, "secret");
// verify jwt and throw
const throwIfInvalid = verify(jwt, "secret", true);
// decode jwt
const decoded = decode(jwt);
// decode jwt with verification (throws)
const validDecoded = decode(jwt, "secret", true)
local Jwt = require(path.to.jwt)
-- sign jwt
local jwt = Jwt.sign({ foo = "bar", exp = 1893481200 }, "secret")
-- sign jwt with algorithm
local hs384jwt = Jwt.sign({ foo = "bar", exp = 1893481200 }, "secret", "HS384")
-- verify jwt
local isValid = Jwt.verify(jwt, "secret")
-- verify jwt and throw
local throwIfInvalid = Jwt.verify(jwt, "secret", true)
-- decode jwt
local decoded = Jwt.decode(jwt)
-- decode jwt with verification (throws)
local validDecoded = decode(jwt, "secret", true)
FAQs
JWT lib for Luau
The npm package @rbxts/jwt receives a total of 29 weekly downloads. As such, @rbxts/jwt popularity was classified as not popular.
We found that @rbxts/jwt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.