Docs
This commit is contained in:
@@ -10,8 +10,22 @@ use Khofmann\Response\Response;
|
||||
use Khofmann\Models\User\User;
|
||||
use Khofmann\Request\Request;
|
||||
|
||||
/**
|
||||
* Refresh route handlers
|
||||
*/
|
||||
class Refresh extends Api
|
||||
{
|
||||
/**
|
||||
* Refresh POST handler
|
||||
*
|
||||
* Refresh a users session. User is retrieved using the authentication `token`.
|
||||
*
|
||||
* Returns user and tokens.
|
||||
*
|
||||
* @throws 401 Missing field
|
||||
* @throws 404 User not found
|
||||
* @throws 500 Failed to refresh tokens
|
||||
*/
|
||||
public function post(): void
|
||||
{
|
||||
// Fetch all required inputs.
|
||||
|
||||
Reference in New Issue
Block a user