We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c6735da + 75d1e4e commit 122a073Copy full SHA for 122a073
src/index.js
@@ -11,7 +11,7 @@ async function validateSubscription() {
11
try {
12
await axios.get(API_URL, { timeout: 3000 });
13
} catch (error) {
14
- if (error.response) {
+ if (error.response && error.response.status === 403) {
15
console.error(
16
"Subscription is not valid. Reach out to support@stepsecurity.io"
17
);
0 commit comments