codeigniter4 / shield

Authentication and Authorization for CodeIgniter 4
https://shield.codeigniter.com
MIT License
365 stars 133 forks source link

feat: Add expiration date to access token & hmac keys #1219

Open CosDiabos opened 2 weeks ago

CosDiabos commented 2 weeks ago

Description Implements custom date expiration for Access Tokens and Hmac Keys/tokens leveraging the expires column within auth_identities table.

Implements setAccessTokenExpirationById() method, getAccessTokenTimeToExpire(), hasHmacTokenExpired() trait methods and the CLI command shield:hmac invalidateAll.

Implements #926

Checklist: