Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

use microtime(true) instead of time() for the JWT validation

Open
#9,713 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
security

Research direction

Look for JWT validation code in the library, likely in a file handling authentication or token verification. The issue references using microtime(true) instead of time() for timestamp validation. Check if gettimeofday function exists as a fallback. Review linked issues #488 and PR #492 from the firebase/php-jwt repository for context on the change and implementation details.

Written by the indexing model from the issue text.

Description

type: feature request

See https://github.com/firebase/php-jwt/issues/488 and https://github.com/firebase/php-jwt/pull/492

use microtime instead of time for JWT validation.

We MAY want to do this in a minor version because it's possible that gettimeofday (which is required by microtime) doesn't exist on all systems. It may be possible to verify that the function does exist, and fall back on date if not.

Dominant language
PHP
Stars
1.2k
Forks
464
Avg merge
2d 2h
Merged PRs (30d)
103

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-cloud-php

All issues in googleapis/google-cloud-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.