repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'hotfix/21.56.9' into master
[gitter.git]
/
server
/
serializers
/
rest
/
identity-strategy.js
blob
39f8bad287af4484688a78134e5a9c166d6f4900
1
'use strict'
;
2
3
class
IdentityStrategy
{
4
preload
() {}
5
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
16
};
17
}
18
}
19
20
module
.
exports
=
IdentityStrategy
;