File "SignInWithRefreshToken.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/kreait/firebase-php/src/Firebase/Auth/SignInWithRefreshToken.php
File size: 742 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
declare(strict_types=1);
namespace Kreait\Firebase\Auth;
/**
* @internal
*/
final class SignInWithRefreshToken implements IsTenantAware, SignIn
{
private ?string $tenantId = null;
private function __construct(private readonly string $refreshToken)
{
}
public static function fromValue(string $refreshToken): self
{
return new self($refreshToken);
}
public function withTenantId(string $tenantId): self
{
$action = clone $this;
$action->tenantId = $tenantId;
return $action;
}
public function refreshToken(): string
{
return $this->refreshToken;
}
public function tenantId(): ?string
{
return $this->tenantId;
}
}