get method

Future<UserProfileModel> get(
  1. Session session
)

Returns the user profile of the current user.

Implementation

Future<UserProfileModel> get(final Session session) async {
  final authUserId = (await session.authenticated)!.authUserId;

  final profile = await UserProfiles.findUserProfileByUserId(
    session,
    authUserId,
  );

  return profile;
}