Skip to main content
Home
Works with
This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score100%
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.

I
TokenOptions

Additional fields that can be set inside a Token

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.