(check)
| 5 | } |
| 6 | |
| 7 | export function validateNonce(check) { |
| 8 | const auth = window.sessionStorage.getItem('decap-cms-auth'); |
| 9 | const valid = auth && JSON.parse(auth).nonce; |
| 10 | window.sessionStorage.removeItem('decap-cms-auth'); |
| 11 | return check === valid; |
| 12 | } |
| 13 | |
| 14 | export function isInsecureProtocol() { |
| 15 | return ( |
no outgoing calls
no test coverage detected