In order to disable permission checks and allow development tokens during application development (never in a production build), there are a few steps you need to take, in any order.
1. Ensure your app is in development mode in the dashboard, select App -> Options -> Edit
2. Make sure that a server-side API call has been made to disable auth checks and permission checking
await client.updateAppSettings({
disable_auth_checks: true,
});
await client.updateAppSettings({
disable_permissions_checks: true,
});
3. Create a user with development tokens
await client.setUser(
{
id: 'steve-0',
name: 'Steve',
},
client.devToken('steve-0'),
);
To re-iterate, this should not be enabled on production applications.
Comments
0 comments
Please sign in to leave a comment.