MCPcopy Create free account
hub / github.com/node-apn/node-apn / validateToken

Function validateToken

lib/config.js:78–90  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

76};
77
78function validateToken(token) {
79 if (!token.keyId) {
80 throw new Error("token.keyId is missing");
81 } else if(typeof token.keyId !== "string") {
82 throw new Error("token.keyId must be a string");
83 }
84
85 if (!token.teamId) {
86 throw new Error("token.teamId is missing");
87 } else if(typeof token.teamId !== "string") {
88 throw new Error("token.teamId must be a string");
89 }
90}
91
92function configureAddress(options) {
93 if (!options.address) {

Callers 1

validateOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…