mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Switch accessToken check from != null to StringUtils.hasContent
This commit is contained in:
@ -1020,7 +1020,7 @@ public class Auth0AuthenticationModule implements QAuthenticationModuleInterface
|
|||||||
// decode the accessToken and make sure it is not expired //
|
// decode the accessToken and make sure it is not expired //
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
boolean needNewToken = true;
|
boolean needNewToken = true;
|
||||||
if(accessToken != null)
|
if(StringUtils.hasContent(accessToken))
|
||||||
{
|
{
|
||||||
DecodedJWT jwt = JWT.decode(accessToken);
|
DecodedJWT jwt = JWT.decode(accessToken);
|
||||||
String payload = jwt.getPayload();
|
String payload = jwt.getPayload();
|
||||||
|
Reference in New Issue
Block a user