(token)
| 1 | import jwtDecode from 'jwt-decode' |
| 2 | |
| 3 | function parseGoogleJwtResponse (token) { |
| 4 | const decoded = jwtDecode(token) |
| 5 | return { |
| 6 | gplusID: decoded.sub, |
| 7 | firstName: decoded.given_name, |
| 8 | lastName: decoded.family_name, |
| 9 | email: decoded.email |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | module.exports = { |
| 14 | parseGoogleJwtResponse |
nothing calls this directly
no outgoing calls
no test coverage detected