checkLogin abstract method

Future<({String message, bool success, T? user})> checkLogin()

Checks the login status and returns a tuple containing the success status, a message, and the authenticated user object T.

This method should be implemented to return the login check result in the form:

(success: true/false, message: 'Login successful/failed', user: T? user)

Implementation

Future<({bool success, String message, T? user})> checkLogin();