@4players/odin-tokens@2.2.0
latest
Works with
•JSR Score100%•This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun




Downloads3/wk
•Published9 months ago (2.2.0)
Generate API keys and tokens used by 4Players ODIN.
f
generateAccessKey
Generates a new ODIN access, which is a 44 character long Base64-String that consists of an internal version number, a set of random bytes and a checksum.
f
getKeyId
Generates a key ID from a given secret key.
f
getPublicKey
Exports the public key from a given secret key.
f
loadAccessKey
Validates an ODIN access key and loads its key pair.
T
SecretKey
Key used to sign ODIN-Tokens.
c
TokenGenerator
Generates tokens that can be used to access the ODIN network.