Last active
July 27, 2021 14:07
-
-
Save babjo/faece292839dcd1d42010e0f2ca7717b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class AuthClientImpl implements AuthClient { | |
public long verifyToken(String token) { | |
String rawJson = decrpyt(token); | |
User user = deserialize(rawJson); | |
return user.getId(); | |
} | |
private String decrpyt(String token) { ... } | |
private User deserialize(String rawJson) { ... } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment