You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example is a one page app showing a list of projects (or whatever). There are two roles, admin and user. The admin can see all projects and the user can see only ones that they own.
The shape calls should proxy through the API similar to the next.js or remix examples and set the where clause for the user role so it filters down projects.
At the top of the page, you can click to become the admin or one of 3 users. That'll set a query string with the role of the user and then refresh the page so the app re-fetches the right shape.
Use a custom fetchClient to set custom auth headers.
The text was updated successfully, but these errors were encountered:
The example is a one page app showing a list of projects (or whatever). There are two roles, admin and user. The admin can see all projects and the user can see only ones that they own.
The shape calls should proxy through the API similar to the next.js or remix examples and set the where clause for the
user
role so it filters down projects.At the top of the page, you can click to become the admin or one of 3 users. That'll set a query string with the role of the user and then refresh the page so the app re-fetches the right shape.
Use a custom
fetchClient
to set custom auth headers.The text was updated successfully, but these errors were encountered: