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

Method decode

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

* Decodes JWT token and returns its payload. * @param {string} encodedToken * @return {?JsonObject|undefined}

(encodedToken)

Source from the content-addressed store, hash-verified

4173 * @return {?JsonObject|undefined}
4174 */
4175 decode(encodedToken) {
4176 return this.decodeInternal_(encodedToken).payload;
4177 }
4178
4179 /**
4180 * @param {string} encodedToken

Callers 6

utf8DecodeFunction · 0.45
utf8DecodeSyncFunction · 0.45
parseFromJsonMethod · 0.45
parseUserDataFunction · 0.45

Calls 1

decodeInternal_Method · 0.95

Tested by

no test coverage detected