authClient.organization.checkRolePermission(...) -> now a promise?
const canCreateProject = authClient.organization.checkRolePermission({
permissions: {
organization: ["delete"],
},
role: "admin",
});
I recently updated my project to the latest version 1.3.8 and noticed that despite the documented synchronous nature of cited function, it does now return a Promise<boolean>.
Is this intended? I thought the whole idea was to save a roundtrip to the server.3 Replies
Oh that's not expected!
I'll check it out
Solution
Thanks!