mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
22 lines
547 B
PHP
22 lines
547 B
PHP
<?php
|
|
/**
|
|
* @author Ivan Kurnosov <zerkms@zerkms.com>
|
|
* @copyright Copyright (c) Alex Bilbie
|
|
* @license http://mit-license.org/
|
|
*
|
|
* @link https://github.com/thephpleague/oauth2-server
|
|
*/
|
|
|
|
namespace League\OAuth2\Server\Exception;
|
|
|
|
|
|
class UniqueTokenIdentifierConstraintViolationException extends OAuthServerException
|
|
{
|
|
public static function create()
|
|
{
|
|
$errorMessage = 'Could not create unique access token identifier';
|
|
|
|
return new static($errorMessage, 100, 'access_token_duplicate', 500);
|
|
}
|
|
}
|