Open thomasfw opened 2 months ago
I'm getting a Firebase\JWT\BeforeValidException exception so I've resorted to setting JWT leeway as below, which fixes the issue:
Firebase\JWT\BeforeValidException
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) { \Firebase\JWT\JWT::$leeway = 60; // <----- Fix $event->extendSocialite('azureadb2c', \SocialiteProviders\AzureADB2C\Provider::class); });
I've rather not use \Firebase\JWT\JWT directly as it might change depending on your implementation.
\Firebase\JWT\JWT
I do see some related issues (https://github.com/SocialiteProviders/Providers/issues?q=leeway) and a comment mentioning that it was fixed in #811, but I can't find the solution documented anywhere or from scanning the source code.
Feel free to PR a fix :)
I'm getting a
Firebase\JWT\BeforeValidException
exception so I've resorted to setting JWT leeway as below, which fixes the issue:I've rather not use
\Firebase\JWT\JWT
directly as it might change depending on your implementation.I do see some related issues (https://github.com/SocialiteProviders/Providers/issues?q=leeway) and a comment mentioning that it was fixed in #811, but I can't find the solution documented anywhere or from scanning the source code.