Understand SignInResult
8.xCustom authentication methods return an instance of Kreaitirebase\Auth\SignInResult\SignInResult. This object provides access to the authentication data returned by the Firebase API.
Available Accessors:
$signInResult->idToken(): Returns the ID token (string|null).$signInResult->firebaseUserId(): Returns the Firebase UID (string|null).$signInResult->accessToken(): Returns the access token (string|null).$signInResult->refreshToken(): Returns the refresh token (string|null).$signInResult->data(): Returns the full payload of the response (array).$signInResult->asTokenResponse(): Returns the result in a format suitable for client-side consumption (array).
$tokenResponse = [
'token_type' => 'Bearer',
'access_token' => '...',
'id_token' => '...',
'refresh_token' => '...',
'expires_in' => 3600,
];