mirror of
https://github.com/elyby/accounts.git
synced 2025-01-25 21:11:55 +05:30
119a0f8078
Add mock responses related to the Device Code grant.
36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'pending-code' => [
|
|
'device_code' => 'nKuYFfwckZywqU8iUKv3ek4VtiMiMCkiC0YTZFPbWycSxdRpHiYP2wnv3S0KHBgYky8fRDqfhhCqzke7',
|
|
'user_code' => 'AAAABBBB',
|
|
'client_id' => 'ely',
|
|
'scopes' => ['minecraft_server_session', 'account_info'],
|
|
'account_id' => null,
|
|
'is_approved' => null,
|
|
'last_polled_at' => null,
|
|
'expires_at' => time() + 1800,
|
|
],
|
|
'expired-code' => [
|
|
'device_code' => 'ZFPbWycSxdRpHiYP2wnv3S0KHBgYky8fRDqfhhCqzke7nKuYFfwckZywqU8iUKv3ek4VtiMiMCkiC0YT',
|
|
'user_code' => 'EXPIRED',
|
|
'client_id' => 'ely',
|
|
'scopes' => ['minecraft_server_session', 'account_info'],
|
|
'account_id' => null,
|
|
'is_approved' => null,
|
|
'last_polled_at' => time() - 1200,
|
|
'expires_at' => time() - 1800,
|
|
],
|
|
'completed-code' => [
|
|
'device_code' => 'xdRpHiYP2wnv3S0KHBgYky8fRDqfhhCqzke7nKuYFfwckZywqU8iUKv3ek4VtiMiMCkiC0YTZFPbWycS',
|
|
'user_code' => 'COMPLETED',
|
|
'client_id' => 'ely',
|
|
'scopes' => ['minecraft_server_session', 'account_info'],
|
|
'account_id' => 1,
|
|
'is_approved' => true,
|
|
'last_polled_at' => time(),
|
|
'expires_at' => time() + 1800,
|
|
],
|
|
];
|