Created
July 18, 2019 19:06
-
-
Save quintonpryce/50812ea27745270e5c5fe332d8d6005d to your computer and use it in GitHub Desktop.
Adjust Event Token Validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func checkEventToken(eventToken: String) { | |
guard !ADJUtil.isNull(eventToken) else { | |
logger.error("Missing Event Token") | |
return false | |
} | |
guard eventToken.count == 6 else { | |
logger.error("Malformed Event Token \(eventToken)") | |
return false | |
} | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment