This commit is contained in:
MaxKey
2022-04-22 22:00:39 +08:00
parent e31a83b679
commit b6d30a8730
8 changed files with 70 additions and 11 deletions

View File

@@ -65,7 +65,10 @@ public class AuthJwtService {
* @return AuthJwt
*/
public AuthJwt genAuthJwt(Authentication authentication) {
return new AuthJwt(genJwt(authentication), authentication);
if(authentication != null) {
return new AuthJwt(genJwt(authentication), authentication);
}
return null;
}
/**