()
| 12 | } |
| 13 | |
| 14 | export function isInsecureProtocol() { |
| 15 | return ( |
| 16 | document.location.protocol !== 'https:' && |
| 17 | // TODO: Is insecure localhost a bad idea as well? I don't think it is, since you are not actually |
| 18 | // sending the token over the internet in this case, assuming the auth URL is secure. |
| 19 | document.location.hostname !== 'localhost' && |
| 20 | document.location.hostname !== '127.0.0.1' |
| 21 | ); |
| 22 | } |
no outgoing calls
no test coverage detected