The Corbado provider must be integrated for this to work. Go Back to Initialize Corbado

Accessing User Data

1

Access the User Provider

The CorbadoUserProvider supplies various user details.

lib/pages/profile_page.dart
final user = ref.watch(userProvider);
2

Access User Properties

Once you have the user provider, you can access the user data everywhere in your app: