getProfile method
Fetch the full profile row including onboarding state columns. Returns null if the user is not authenticated or the row doesn't exist.
Implementation
Future<ProfileModel?> getProfile() async {
final userId = _client.auth.currentUser?.id;
if (userId == null) return null;
final row = await _client
.from('profiles')
.select()
.eq('id', userId)
.maybeSingle();
if (row == null) return null;
return ProfileModel.fromJson(row);
}