Skip to content

Commit

Permalink
Merge pull request #458 from permitio/raz/per-11291-docs-fix-roleassi…
Browse files Browse the repository at this point in the history
…gnment-in-auth0-and-nodejs-doc

fix for role assignment node examples
  • Loading branch information
RazcoDev authored Dec 5, 2024
2 parents 0bf068f + 5e43da2 commit 506ef6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/authentication/auth0/auth0-demo-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down
1 change: 1 addition & 0 deletions docs/sdk/nodejs/quickstart-nodejs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ await permit.api.roleAssignments.assign({
user,
role,
tenant: "default",
resource_instance: "document:1",
});
```

Expand Down

0 comments on commit 506ef6f

Please sign in to comment.