Skip to main content

What's new in version 2 (part 4/4)

· 6 min read
Loïc Poullain
Fullstack developper and creator of FoalTS

Banner

This article presents the improvements to the session system in FoalTS version 2.

The new syntax can be used either with cookies or with the Authorization header. It adds the following new features:

  • query all sessions of a given user
  • query all connected users
  • force logout of a specific user
  • flash sessions
  • session ID regeneration
  • anonymous and authenticated sessions

FoalTS also simplifies stateful CSRF protection so that all it takes is one setting to enable it.

What's new in version 2 (part 3/4)

· 4 min read
Loïc Poullain
Fullstack developper and creator of FoalTS

Banner

This article presents some improvements introduced in version 2 of FoalTS:

  • the JWT utilities to manage secrets and RSA keys,
  • the JWT utilities to manage cookies,
  • and the new stateless CSRF protection.

What's new in version 2 (part 2/4)

· 6 min read
Loïc Poullain
Fullstack developper and creator of FoalTS

Banner

This article presents some improvements introduced in version 2 of FoalTS:

  • Configuration and type safety
  • Configuration and .env files (.env, .env.test, etc)
  • Available configuration file formats (JSON, YAML and JS)
  • OpenAPI schemas and validation

What's new in version 2 (part 1/4)

· 5 min read
Loïc Poullain
Fullstack developper and creator of FoalTS

Banner

This article presents some improvements introduced in version 2 of FoalTS:

  • the new CLI commands
  • the service and application initialization
  • the AppController interface
  • custom error-handling & hook post functions
  • accessing file metadata during uploads