cartouche 0.1.0
cartouche: ^0.1.0 copied to clipboard
Personal access tokens for Maat applications.
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.