update comment around token validation to clarify behavior (#87)

Signed-off-by: Jun Woo Shin <jwoos@fb.com>
This commit is contained in:
Jun Woo Shin
2022-09-26 17:01:58 -04:00
committed by GitHub
parent fafbda0bd8
commit 5211eae7c6

View File

@@ -302,9 +302,9 @@ public class ApiServer implements Runnable {
}
/**
* Validate an OpenWiFi token (external), caching successful lookups. Both normal
* token and subtoken is checked in the validateToken call already so there is
* no need to call validateSubToken separately.
* Validate an OpenWiFi token (external), caching successful lookups. This will
* validate a USER token - subscriber token won't work and will fail (plus only
* users should be dealing with RRM).
* @return true if token is valid
*/
private boolean validateOpenWifiToken(String token) {