Tokens
Tokens
Create & verify tokens for authorization purposes.
Installation
Run the following command in your project directory:
Authors
Status
Stable
Source
License
Apache 2.0
Database
Includes Database
Actors
0 actors
Public Scripts
No public scripts
FAQ
Why not use JWTs?
Performance
JWTs are often touted as better performing since you can cryptographically validate them. However, you still need to check the database to see if the token is expired, which is just as slow as handling normal tokens. Opt for better caching.
Simplicity
JWTs require handling & rotating a private key, in addition to being able to blacklist tokens in case of a leaked private key. This is cumbersome and error prone.
Length
JWTs are long and are cumbersome to copy & paste. Database-backed tokens can store unlimited metadata.