Download the PHP package albetnov/sanctum-refresh without Composer
On this page you can find all versions of the php package albetnov/sanctum-refresh. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download albetnov/sanctum-refresh
More information about albetnov/sanctum-refresh
Files in albetnov/sanctum-refresh
Package sanctum-refresh
Short Description This package extends sanctum ability to be able to provide refresh token as well
License MIT
Homepage https://github.com/albetnov/sanctum-refresh
Informations about the package sanctum-refresh
Sanctum Refresh
Minimal and flexible package to extend Sanctum to have refresh token as well.
Installation
You can install the package via composer:
Then you'll need to push and run the migration with:
You can also publish the config file with:
This is the contents of the published config file:
Quick Start
Creating token
Response schema:
Refresh Token Middleware (optional, if you want to customize error based on expired, invalid format, etc)
Create the Middleware
Applying your middleware to your routes
Handling the refresh token creation
Pruning Token
Register prune:token
on your commands Kernel.php
, you can run it as cron job:
Testing
Run the tests:
Figure out the code coverage:
Changelog
Please see Changelog for more information.
Contributing
You are free to contribute to this project.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of sanctum-refresh with dependencies
illuminate/contracts Version ^11.0|^12.0
laravel/sanctum Version ^4.0
nesbot/carbon Version ^3.8
spatie/laravel-package-tools Version ^1.18.0