async function resolveProfileInternal()

in src/GraphService.ts [99:106]


    async function resolveProfileInternal(emailOrId: string): Promise<IPersonaProfile> {
        const response = await enqueueRequest(`/users/${emailOrId}?$select=${profileFields}`, "GET");
        if (response.status < 400) {
            return buildProfile(response.body);
        } else {
            throw Error((response.body && response.body.error && response.body.error.message) || response.status);
        }
    }