Merge branch 'hotfix/21.56.9' into master
[gitter.git] / server / serializers / rest / identity-strategy.js
blob39f8bad287af4484688a78134e5a9c166d6f4900
1 'use strict';
3 class IdentityStrategy {
4 preload() {}
6 map(item) {
7 return {
8 id: item.id || item._id,
9 userId: item.userId,
10 provider: item.provider,
11 providerKey: item.providerKey,
12 username: item.username,
13 displayName: item.displayName,
14 email: item.email,
15 avatar: item.avatar
20 module.exports = IdentityStrategy;