Skip to content

Commit 122a073

Browse files
Merge pull request #121 from step-security/Raj-StepSecurity-patch-6
feat: Validate Updated Subscription Flow
2 parents c6735da + 75d1e4e commit 122a073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function validateSubscription() {
1111
try {
1212
await axios.get(API_URL, { timeout: 3000 });
1313
} catch (error) {
14-
if (error.response) {
14+
if (error.response && error.response.status === 403) {
1515
console.error(
1616
"Subscription is not valid. Reach out to support@stepsecurity.io"
1717
);

0 commit comments

Comments
 (0)