Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Last active May 31, 2019 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchmielarz/a15e358560f41bd67796cbe83ef34ff2 to your computer and use it in GitHub Desktop.
Save mchmielarz/a15e358560f41bd67796cbe83ef34ff2 to your computer and use it in GitHub Desktop.
@Value
@Getter(NONE)
class AccessToken {
private final String value;
public BusinessId businessId() {
return JWT.decode(value).getClaim("businessId");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment