src/A1comms/GaeSupportLaravel/Auth/Token/Firebase.php
/**
     * Validate a Firebase session cookie token.
     *
     * @param string $sessionCookie_jwt The JWT token to be validated.
     * @param string $expected_audience The expected audience of the provided JWT (project id).
     *
     * @throws \A1comms\GaeSupportLaravel\Auth\Exception\InvalidTokenException if the token is invalid.
     *
     * @return array Returns array containing "sub" and "email" if token is valid.
     */
Validate a Firebase session cookie token.
@param string $sessionCookie_jwt The JWT token to be validated.
@param string $expected_audience The expected audience of the provided JWT (project id).



@return array Returns array containing "sub" and "email" if token is valid.
Validate a Firebase session cookie token . @param string $sessionCookie_jwt The JWT token to be validated . @param string $expected_audience The expected audience of the provided JWT ( project id ) . @return array Returns array containing " sub " and " email " if token is valid .
public static function validateToken($sessionCookie_jwt, $expected_audience)
    {
        $jwk_url = self::get_jwk_url();
        return JWT_x509::validate($sessionCookie_jwt, $expected_audience, $jwk_url, self::JWT_SIG_ALG, [
            'https://session.firebase.google.com/' . $expected_audience,
        ]);
    }
public static function validateToken ( $ sessionCookie_jwt , $ expected_audience ) { $ jwk_url = self :: get_jwk_url ( ) ; return JWT_x509 :: validate ( $ sessionCookie_jwt , $ expected_audience , $ jwk_url , self :: JWT_SIG_ALG , [ 'https://session.firebase.google.com/' . $ expected_audience , ] ) ; }
Validate a Firebase session cookie token.
Validate a Firebase session cookie token .