mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Validate user_code
expiry during the Device Code grant.
Add mock responses related to the Device Code grant.
This commit is contained in:
@@ -314,8 +314,8 @@ final readonly class OauthProcess {
|
||||
$parameter = $matches[1];
|
||||
}
|
||||
|
||||
if ($parameter === null && str_starts_with($e->getErrorType(), 'invalid_')) {
|
||||
$parameter = substr($e->getErrorType(), 8); // 8 is the length of the "invalid_"
|
||||
if ($parameter === null && $hint === 'user_code') {
|
||||
$parameter = $hint;
|
||||
}
|
||||
|
||||
$response = [
|
||||
|
Reference in New Issue
Block a user