mirror of
https://github.com/elyby/accounts.git
synced 2026-05-01 19:53:38 +05:30
Extract login logics into a separate component. Not quite clean result but enough for upcoming tasks
This commit is contained in:
@@ -15,6 +15,28 @@ final readonly class AuthenticateData {
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{
|
||||
* accessToken: string,
|
||||
* clientToken: string,
|
||||
* selectedProfile: array{
|
||||
* id: string,
|
||||
* name: string,
|
||||
* },
|
||||
* availableProfiles?: array<array{
|
||||
* id: string,
|
||||
* name: string,
|
||||
* }>,
|
||||
* user?: array{
|
||||
* id: string,
|
||||
* username: string,
|
||||
* properties: array<array{
|
||||
* name: string,
|
||||
* value: string,
|
||||
* }>,
|
||||
* },
|
||||
* }
|
||||
*/
|
||||
public function getResponseData(bool $includeAvailableProfiles = false): array {
|
||||
$uuid = str_replace('-', '', $this->account->uuid);
|
||||
$result = [
|
||||
|
||||
Reference in New Issue
Block a user