Skip to content

AdonisJS v7 · Node.js 24+

JWT authentication built for the whole session.

Short-lived signed access tokens. Rotating opaque refresh tokens. Key overlap, browser transport, revocation, events, and traces without weakening verification.

node ace add @rikology/adonisjs-jwt
node ace jwt:make-key
node ace migration:run

// config/auth.ts
jwt: jwtGuard({
  provider,
  keySet: jwtKeySet,
  refreshStore: jwtRefreshTokenStore,
  config: jwtConfig,
})

Start with the threat model, not a token helper.

Review key custody, refresh replay, cookie CSRF, and incident response before exposing authentication routes.

Read security operations →

Type to search…

↑↓ navigate↵ selectEsc close