diff --git a/docs/authentication/auth0/auth0-demo-app.mdx b/docs/authentication/auth0/auth0-demo-app.mdx index 01c8e793..3e95c4a4 100644 --- a/docs/authentication/auth0/auth0-demo-app.mdx +++ b/docs/authentication/auth0/auth0-demo-app.mdx @@ -253,7 +253,7 @@ Then when a user logs into our app, we can also sync their roles with Permit by user: permitUserObj.key, tenant: 'default' } - const assignedRole = await permit.api.assignRole(roleToAssign); + const assignedRole = await permit.api.roleAssignments.assign(roleToAssign); console.log(assignedRole); }); } diff --git a/docs/sdk/nodejs/quickstart-nodejs.mdx b/docs/sdk/nodejs/quickstart-nodejs.mdx index c4fdab30..ba97e8ce 100644 --- a/docs/sdk/nodejs/quickstart-nodejs.mdx +++ b/docs/sdk/nodejs/quickstart-nodejs.mdx @@ -163,6 +163,7 @@ await permit.api.roleAssignments.assign({ user, role, tenant: "default", + resource_instance: "document:1", }); ```