getCurrentUserProfile method

CarpUser getCurrentUserProfile(
  1. TokenResponse response
)

Gets the CARP profile of the current user from the JWT token

Implementation

CarpUser getCurrentUserProfile(TokenResponse response) {
  var jwt = JwtDecoder.decode(response.accessToken!);
  return CarpUser.fromJWT(jwt);
}