MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

third_party/subscriptions-project/swg.js:4674–4694  ·  view source on GitHub ↗

* @param {string} idToken * @param {!Object} data

(idToken, data)

Source from the content-addressed store, hash-verified

4672 * @param {!Object} data
4673 */
4674 constructor(idToken, data) {
4675 /** @const {string} */
4676 this.idToken = idToken;
4677 /** @const {!Object} */
4678 this.data = data;
4679
4680 /** @const {string} */
4681 this.id = data['sub'];
4682 /** @const {string} */
4683 this.email = data['email'];
4684 /** @const {boolean} */
4685 this.emailVerified = data['email_verified'];
4686 /** @const {string} */
4687 this.name = data['name'];
4688 /** @const {string} */
4689 this.givenName = data['given_name'];
4690 /** @const {string} */
4691 this.familyName = data['family_name'];
4692 /** @const {string} */
4693 this.pictureUrl = data['picture'];
4694 }
4695
4696 /**
4697 * @return {!UserData}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected