getLoggedUser method

  1. @override
Future<User?> getLoggedUser()
override

Get the details of the logged User.

When you make a call to the server, an authentication token is used to identify you. This call returns the complete User object that corresponds to your authentication credentials.

Implementation

@override
Future<User?> getLoggedUser() async => (await api.baseUserApi.getCurrentUser())?.toUser();