Automatically cleanup expired items in a Map
Expirable data storage based on localStorage and sessionStorage.
A collection of token providers
Common token types for decoding and encoding numeric and string values
GitHub API token authentication for browsers and Node.js
Get the auth token set for an npm registry (if any)
A JavaScript text diff implementation.
Runtime OIDC helpers intended for use with Vercel Functions
TypeScript definition for strtok3 token
Octokit authentication strategy for OAuth clients
GitHub App authentication for JavaScript
Official library for using the Slack Platform's Web API
A Map implementation with expirable items
Tiny JavaScript tokenizer.
A lightweight library for generating short-term bearer tokens for AWS Bedrock API authentication
Take an array of token and produce a more useful API to give to a parser
Lightweight fuzzy-search
SPL Token Program JS API
Type-safe implementation of invariant with positionals.
oidc-token-hash validates (and generates) ID Token `_hash` claims such as `at_hash` or `c_hash`
Decode JWT tokens, mostly useful for browser applications.
A micro-library of stream components for building custom JSON and JSONC processing pipelines with a minimal memory footprint — parse, filter, and transform JSON far larger than available memory with a SAX-inspired token API, on Node.js or Web Streams.
SPL Token Group Interface JS API
GitHub OAuth App authentication for JavaScript
A generic class to convert simple information in a hard to understand hash that can be used in a URL for instance
Generate and validate time expiring tokens
Wrapper for OAuth2::Token to automatically refresh the expiry token when expired.
A complete JWT toolkit for Ruby. Encode and decode tokens with automatic claim management (exp, iat, iss, jti), generate access/refresh token pairs, validate expiration and issuer, and revoke tokens — all without external dependencies.
The devise-api gem is a convenient way to add authentication to your Ruby on Rails application using the devise gem. It provides support for access tokens and refresh tokens, which allow you to authenticate API requests and keep the user's session active for a longer period of time on the client side. It can be installed by adding the gem to your Gemfile, running migrations, and adding the :api module to your devise model. The gem is fully configurable, allowing you to set things like token expiration times and token generators.
Gem to add authentication to your application using JWT, with expirable, renewable and customizable tokens.
A Ruby gem to verify the signature of Firebase ID Tokens. It uses Redis to store Google's x509 certificates and manage their expiration time, so you don't need to request Google's API in every execution and can access it as fast as reading from memory.
DeadDrop allows you to drop content in an anonymous locker only accessible with a randomly generated token. You can configure when the content should expire and limit the number of total accesses to the content.
A typical usecase of JWT tokens is when building an API. JWT tokens can be sent as authorization tokens in headers. The advantage of using JWT tokens is that they are signed with a secret, so the information inside them cannot be tampered. This makes them ideal for embeding both authentication and authorization information in one step (e.g. by "decoding" the token, one can get information about the user and the roles a user has in case of a role-based authorization). Also, the fact that expiration timestamps can be embedded in the data of the token and be handled automatically, can be used to easily build short-lived tokens, making an API more secure.
Token Authentication for Rails using JWT. Slots is designed to keep JWT stateless and minimize database calls. This is done by storing (none sensitive) data in the JWT and populating current_user with the JWT data. This allows for things like `current_user.teams` or other assocations to be called on the user. Unless explicitly told slots will only load the user from the database when creating (or updating an expired) token.
Tokenzen is a lightweight, model-agnostic authentication toolkit for Rails. It provides secure, polymorphic access token management for any ActiveRecord model with configurable expiration, AES-256 encryption, login, logout, and refresh token rotation.
Imprint is a Ruby library for generating signed, time-limited image renders with dynamic text watermarks. It allows you to securely distribute images using expiring tokens, preventing unauthorized reuse or hotlinking. Imprint works as a pure Ruby library and can optionally integrate with Rails via an isolated engine. Image rendering is powered by the GD graphics library.