(appKey = SIGN_APP_KEY)
| 84 | } |
| 85 | |
| 86 | function getSignSecret(appKey = SIGN_APP_KEY) { |
| 87 | if (appKey !== SIGN_APP_KEY) throw new Error(`appSecret not found: ${appKey}`); |
| 88 | return SIGN_APP_SECRET; |
| 89 | } |
| 90 | |
| 91 | function signString(data, postAndJSON = false, appKey = SIGN_APP_KEY) { |
| 92 | const secret = getSignSecret(appKey); |
no outgoing calls
no test coverage detected