<?php
use Kreait\Firebase\JWT\Error\IdTokenVerificationFailed;
use Kreait\Firebase\JWT\IdTokenVerifier;
$projectId = '...';
$tenantId = '...';
$idToken = 'eyJhb...'; // An ID token given to your backend by a Client application
$verifier = IdTokenVerifier::createWithProjectId($projectId);
$tenantAwareVerifier = $verifier->withExpectedTenantId($tenantId);
$token = $tenantAwareVerifier->verifyIdToken($idToken);
How to test
Custom Token Generation
ID Token verification
Todo
kreait/firebase-php
:octocat: