OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
src
/
Firebase
/
Auth
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:35:39 AM
rwxr-xr-x
📁
ActionCodeSettings
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
ActionCodeSettings.php
208 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
ApiClient.php
6.1 KB
08/12/2024 10:35:36 AM
rw-r--r--
📁
CreateActionLink
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
CreateActionLink.php
1.37 KB
08/12/2024 10:35:36 AM
rw-r--r--
📁
CreateSessionCookie
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
CreateSessionCookie.php
2.21 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
CustomTokenViaGoogleIam.php
3.16 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
DeleteUsersRequest.php
1.69 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
DeleteUsersResult.php
1.66 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
DisabledLegacyCustomTokenGenerator.php
659 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
DisabledLegacyIdTokenVerifier.php
505 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
IdTokenVerifier.php
4.57 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
IsTenantAware.php
147 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📁
SendActionLink
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
SendActionLink.php
1.78 KB
08/12/2024 10:35:36 AM
rw-r--r--
📁
SignIn
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
SignIn.php
96 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInAnonymously.php
571 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInResult.php
3.77 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithCustomToken.php
821 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithEmailAndOobCode.php
973 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithEmailAndPassword.php
1.03 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithIdpCredentials.php
2.75 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithRefreshToken.php
828 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
TenantId.php
421 bytes
08/12/2024 10:35:37 AM
rw-r--r--
📄
UserInfo.php
1.11 KB
08/12/2024 10:35:37 AM
rw-r--r--
📄
UserMetaData.php
1.63 KB
08/12/2024 10:35:37 AM
rw-r--r--
📄
UserRecord.php
3.6 KB
08/12/2024 10:35:37 AM
rw-r--r--
Editing: UserMetaData.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\Auth; use DateTimeImmutable; use Kreait\Firebase\Util\DT; class UserMetaData implements \JsonSerializable { public ?DateTimeImmutable $createdAt = null; public ?DateTimeImmutable $lastLoginAt = null; public ?DateTimeImmutable $passwordUpdatedAt = null; /** * The time at which the user was last active (ID token refreshed), or null * if the user was never active. */ public ?DateTimeImmutable $lastRefreshAt = null; /** * @param array<string, mixed> $data */ public static function fromResponseData(array $data): self { $metadata = new self(); $metadata->createdAt = DT::toUTCDateTimeImmutable($data['createdAt']); if ($data['lastLoginAt'] ?? null) { $metadata->lastLoginAt = DT::toUTCDateTimeImmutable($data['lastLoginAt']); } if ($data['passwordUpdatedAt'] ?? null) { $metadata->passwordUpdatedAt = DT::toUTCDateTimeImmutable($data['passwordUpdatedAt']); } if ($data['lastRefreshAt'] ?? null) { $metadata->lastRefreshAt = DT::toUTCDateTimeImmutable($data['lastRefreshAt']); } return $metadata; } /** * @return array<string, mixed> */ public function jsonSerialize(): array { $data = \get_object_vars($this); $data['createdAt'] = $this->createdAt !== null ? $this->createdAt->format(DATE_ATOM) : null; $data['lastLoginAt'] = $this->lastLoginAt !== null ? $this->lastLoginAt->format(DATE_ATOM) : null; return $data; } }