Make authenticated user data available in page state #3209
Labels
feature: App Editor
good first issue
Great for first contributions. Enable to learn the contribution process.
scope: toolpad-studio
Abbreviated to "studio"
Summary
In the same way that we have added authenticated session data to the server context to be used in functions in #3157 (https://mui.com/toolpad/reference/api/get-context/), we could make that same data available in the page state for bindings.
This would be a global property in the page state that would show for every page of a Toolpad app using at least 1 authentication provider.
If no user is logged-in, the session should be
null
.Examples
https://docs.retool.com/reference/apps/global/objects/current_user
Motivation
Providing users with more options to easily build their apps around authentication/authorization.
Search keywords: authentication authorization page state session user
The text was updated successfully, but these errors were encountered: