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
Ping
Ping4w ago
Oh that's not expected! I'll check it out
Danilo
DaniloOP4w ago
Thanks!

Did you find this page helpful?