Which auth to use?ΒΆ

For most web apps, we recommend using session auth. It is robust, and well understood. Piccolo API has a very complete implementation with endpoints for logging in, logging out, changing password, and more.

Token auth is useful when authenticating mobile apps, or machine to machine communication.

JWT has emerged in recent years as an alternative to session auth. Rather than storing a session in a database and using cookies, it uses signed tokens instead. If you application requires JWT, then we have basic support for it, but we recommend session auth for most applications.