Frontend
Making Requests
When your app makes requests to your backend, it must authenticate itself by including the session-token as a header of these requests. The backend can then validate the session-token and decide if the client (your app) is allowed to make that request.
The session-token is created after successful login and is provided to you by CorbadoAuth through userChanges. We can access it through the userProvider we created in the previous Overview
step.
For more information on
session-token handling, we highly recommend consulting our documentation.
Here is a brief example of how to include the session-token in your requests to your backend (e.g. https://www.corbado.com):
lib/pages/edit_profile_page.dart