UNPKG
passport-xero
Version:
latest (1.0.0-a)
1.0.0
1.0.0-a
Xero authentication strategy for Passport.
github.com/octoblu/passport-xero
octoblu/passport-xero
passport-xero
/
lib
/
profile.js
15 lines
(13 loc)
•
215 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** * Parse profile. * *
@param
{
Object|String
}
json
*
@return
{
Object
} *
@api
private
*/
exports
.
parse
=
function
(
json
) {
if
(
'string'
===
typeof
json) { json =
JSON
.
parse
(json); }
return
json; };