Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"expires" is not set on the token #933

Open
GauravMarvaha1993 opened this issue Jan 19, 2022 · 2 comments
Open

"expires" is not set on the token #933

GauravMarvaha1993 opened this issue Jan 19, 2022 · 2 comments

Comments

@GauravMarvaha1993
Copy link

"expires" is not set on the token

@GauravMarvaha1993
Copy link
Author

image

@GauravMarvaha1993
Copy link
Author

if (isset($options['expires_in'])) {
if (!is_numeric($options['expires_in'])) {
throw new \InvalidArgumentException('expires_in value must be an integer');
}

        $this->expires = $options['expires_in'] != 0 ? $this->getTimeNow() + $options['expires_in'] : 0;
    } elseif (!empty($options['expires'])) {
        // Some providers supply the seconds until expiration rather than
        // the exact timestamp. Take a best guess at which we received.
        $expires = $options['expires'];

        if (!$this->isExpirationTimestamp($expires)) {
            $expires += $this->getTimeNow();
        }

        $this->expires = $expires;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant