awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
dwyl avatar

dwyl/learn-json-web-tokens

0
View on GitHub↗
4,176 stars·245 forks·JavaScript·MIT·14 views

Learn Json Web Tokens

This project is a technical tutorial and guide for implementing user identity and session management using JSON Web Tokens. It focuses on building a secure login system that verifies user identities in web and mobile applications.

The material covers the full lifecycle of token-based security, including the issuance and validation of authentication tokens and the management of stateless sessions. It provides instructions on maintaining persistent user sessions through client-side storage and implementing session revocation to invalidate specific or all active tokens.

The implementation details include the use of signed cryptographic tokens with embedded identity claims and expiration timestamps. It further addresses token authenticity through signature validation and the use of database-backed blacklisting to override statelessness for invalidated sessions.

Features

  • Authentication Tutorials - Provides a comprehensive technical guide and tutorial for implementing user identity and session management using JSON Web Tokens.
  • JWT Authentications - Provides a complete guide for implementing a secure login system using JSON Web Tokens.
  • Token and Session Management - Generates signed tokens containing user claims and expiration dates for session management.
  • JWT Session Management - Offers detailed instructions for the full lifecycle of JWT-based session management, including issuance, validation, and invalidation.
  • JWT Token Validators - Implements validation of JWT signatures and expiration to protect API endpoints.
  • Session Token Validation - Verifies the signature and expiration of tokens found in request headers to authorize users.
  • Token Blacklists - Implements a database-backed blacklist to revoke specific tokens and override the stateless nature of JWTs.
  • Token Invalidation - Allows marking individual tokens as invalid in a database to prevent further unauthorized access.
  • Stateless Session Management - Implements a session management architecture that avoids server-side state using signed tokens.
  • Token Authentication - Issues signed cryptographic tokens after authentication to verify user identity in subsequent requests.
  • Session Token Issuance - Provides logic for issuing signed session tokens to maintain user identity after successful authentication.
  • Token-Based Identity Verifications - Provides a technical walkthrough for confirming user identities using cryptographically signed tokens and client-side storage.
  • Stateless Token Validation - Implements stateless authentication by validating signed tokens locally without querying a session store.
  • Token Authenticity Verifications - Validates token signatures and timestamps to ensure requests originate from a trusted source.
  • Secure Client-Side Session Storages - Implements secure storage of tokens using HttpOnly and Secure cookie flags.
  • Hash-Based Signature Verifiers - Ensures token integrity through HMAC-based signature validation of the payload and secret.
  • Claim Struct Embeddings - Implements embedding of user metadata and expiration timestamps within the JWT payload to reduce database dependency.
  • Session-Cookie Persistences - Provides mechanisms for maintaining user sessions by persisting signed tokens in browser cookies.
  • Local Storage Token Persisters - Manages the saving and clearing of identity tokens within browser local storage.
  • Token Revocation - Implements mechanisms to invalidate active authentication tokens to force re-authentication or handle security breaches.
  • Expiring Tokens - Secures sessions by embedding expiration claims that automatically invalidate tokens after a set time.
  • JWT and Token Management - Educational resource for implementing JWT-based web security.

Star history

Star history chart for dwyl/learn-json-web-tokensStar history chart for dwyl/learn-json-web-tokens

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does dwyl/learn-json-web-tokens do?

This project is a technical tutorial and guide for implementing user identity and session management using JSON Web Tokens. It focuses on building a secure login system that verifies user identities in web and mobile applications.

What are the main features of dwyl/learn-json-web-tokens?

The main features of dwyl/learn-json-web-tokens are: Authentication Tutorials, JWT Authentications, Token and Session Management, JWT Session Management, JWT Token Validators, Session Token Validation, Token Blacklists, Token Invalidation.

Which projects share features with dwyl/learn-json-web-tokens?

Projects with overlapping indexed features include: jazzband/djangorestframework-simplejwt — This is a JSON Web Token authentication package for the Django REST Framework that manages stateless user identities.… lucia-auth/lucia — Lucia is an authentication library that provides session management, OAuth integration, and password-based login for… netlify/gotrue — GoTrue is a JWT identity provider and user management API. It functions as an OAuth 2.0 compliant server that handles… auth0/express-jwt — express-jwt is a middleware for Express applications that validates JSON Web Tokens to secure routes and authenticate… jwt/ruby-jwt — This is a Ruby implementation library for encoding, decoding, and verifying JSON Web Tokens according to the RFC 7519… dunglas/mercure — Mercure is an HTTP-based message broker and real-time pub/sub server that routes asynchronous data updates to…

Projects sharing features with Learn Json Web Tokens

These projects share indexed features with Learn Json Web Tokens. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • jazzband/djangorestframework-simplejwtjazzband avatar

    jazzband/djangorestframework-simplejwt

    4,321View on GitHub↗

    This is a JSON Web Token authentication package for the Django REST Framework that manages stateless user identities. It serves as an authentication provider and token manager used to issue and validate signed tokens to maintain user sessions across multiple requests. The project implements a dual-token lifecycle, issuing short-lived access tokens and long-lived refresh tokens to balance security with session persistence. It features token rotation to prevent replay attacks and a blacklisting system to invalidate compromised credentials. Additionally, it supports sliding-window expiration to

    Python
    View on GitHub↗4,321
  • lucia-auth/lucialucia-auth avatar

    lucia-auth/lucia

    10,461View on GitHub↗

    Lucia is an authentication library that provides session management, OAuth integration, and password-based login for web applications. It creates and validates server-side sessions using cryptographically random tokens stored in HttpOnly, Secure, SameSite=Lax cookies, with constant-time token comparison to prevent timing side-channel attacks. The library supports authentication through email and password, GitHub OAuth, Google OAuth, and passkey-based sign-in. It enforces two-factor authentication using time-based one-time passwords (TOTP) from authenticator apps, generates recovery codes for

    authoauthtypescript
    View on GitHub↗10,461
  • netlify/gotruenetlify avatar

    netlify/gotrue

    4,424View on GitHub↗

    GoTrue is a JWT identity provider and user management API. It functions as an OAuth 2.0 compliant server that handles user registration and authentication while issuing signed JSON Web Tokens to control access to protected API resources. The service integrates external identity providers to allow users to sign in using third-party accounts. It also includes an SMTP notification service for delivering password resets, signup confirmations, and account recovery emails. The system covers broader capabilities for user account management, including the ability to update user profiles and manage c

    Goauthenticationjwtproduction
    View on GitHub↗4,424
  • auth0/express-jwtauth0 avatar

    auth0/express-jwt

    4,512View on GitHub↗

    express-jwt is a middleware for Express applications that validates JSON Web Tokens to secure routes and authenticate requests. It functions as a security guard that verifies token signatures and expiration dates before allowing access to backend endpoints. The project provides a request credential extractor to retrieve tokens from headers, cookies, or query parameters. It supports dynamic key retrieval to fetch the necessary secrets or public keys at runtime based on request attributes or token headers. The middleware handles JSON Web Token validation, including token expiration handling an

    TypeScriptexpress-jwtjwt
    View on GitHub↗4,512
Compare all 30 related projects→