Prevent an NPE if apple SSO is not configured on a self-hosted server.

This commit is contained in:
Mark Milligan 2022-11-06 18:50:09 -06:00
parent 07765061bd
commit bf648f069c

View File

@ -28,7 +28,7 @@ public class AppleSSO {
private final String audience;
public AppleSSO(String _credentialsPath) {
audience = ResourceLoader.loadFileAsString(_credentialsPath).trim();
audience = NullUtils.trim(ResourceLoader.loadFileAsString(_credentialsPath));
}
public String getEmailFromIdToken(String _idToken) {