diff --git a/backend/src/main/java/io/papermc/hangar/components/auth/service/TokenService.java b/backend/src/main/java/io/papermc/hangar/components/auth/service/TokenService.java index 7d6cb744..4fa316fe 100644 --- a/backend/src/main/java/io/papermc/hangar/components/auth/service/TokenService.java +++ b/backend/src/main/java/io/papermc/hangar/components/auth/service/TokenService.java @@ -144,6 +144,9 @@ public class TokenService extends HangarComponent { } public boolean verifyOtp(final long user, final String header) { + if (header == null) { + return true; + } try { final DecodedJWT decoded = this.verify(header.split(":")[1]); return decoded.getSubject().equals(String.valueOf(user));