Skip to content

Commit 15a56a4

Browse files
committed
chore: deprecate getAssignedRoles
1 parent d9071d4 commit 15a56a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/users/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ export interface Users extends UsersBase {
5050
*
5151
* @param {string} userId The ID of the user to retrieve the assigned roles for.
5252
* @returns {Promise<Record<string, Role>>} A map of role names to their respective roles.
53+
*
54+
* @deprecated: Use `users.db.getAssignedRoles` or `users.oidc.getAssignedRoles` instead.
5355
*/
5456
getAssignedRoles: (userId: string) => Promise<Record<string, Role>>;
5557

0 commit comments

Comments
 (0)