cartouche 0.1.2
cartouche: ^0.1.2 copied to clipboard
Issues, authenticates, and manages personal access tokens for Maat applications backed by Seshat.
Cartouche Tokens #

cartouche adds database-backed personal access tokens, abilities,
expiration, revocation, and test authentication to Maat applications.
class User extends Model<User>
with HasCartoucheTokens<User>
implements Authenticatable {}
Cartouche.provider('users', (id) => User.query().find(id));
See the Cartouche guide for installation and usage.