Frontend
Getting User Data
Getting user data is simple and fast. Since the Corbado session-token is implemented as a JWT, we can get certain user data from the JWT claims directly. Our SDK takes care of this:
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
2
Access User Properties
Once you have the user provider, you can access the user data everywhere in your app:
Username
Username
The username
of the user (full name):
lib/pages/edit_profile_page.dart
Email
The email
of the user (the identifier):
lib/pages/edit_profile_page.dart
Authentication Token
Authentication Token
The idToken
(session-token) used to authenticate the user:
lib/pages/edit_profile_page.dart