isAuthenticated method
Check if user is authenticated
Default implementation checks if access token exists. Override this if you have custom authentication logic.
Implementation
Future<bool> isAuthenticated() async {
final token = await getAccessToken();
return token != null && token.isNotEmpty;
}