• Retrieves a role by its name.

    Parameters

    • role: string | RoleName

      The name of the role to retrieve.

    Returns Promise<Role>

    A promise resolving to the role.