supertokens-node
    Preparing search index...

    Variable getRolesForUserConst

    getRolesForUser: (
        tenantId: string,
        userId: string,
        userContext?: Record<string, any>,
    ) => Promise<{ roles: string[]; status: "OK" }> = Wrapper.getRolesForUser

    Type declaration

      • (
            tenantId: string,
            userId: string,
            userContext?: Record<string, any>,
        ): Promise<{ roles: string[]; status: "OK" }>
      • Parameters

        • tenantId: string
        • userId: string
        • OptionaluserContext: Record<string, any>

        Returns Promise<{ roles: string[]; status: "OK" }>