switchman-dev 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/licence.js +7 -6
package/package.json
CHANGED
package/src/core/licence.js
CHANGED
|
@@ -134,12 +134,13 @@ export async function checkLicence() {
|
|
|
134
134
|
|
|
135
135
|
// Try live validation
|
|
136
136
|
try {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
const res = await fetch(VALIDATE_URL, {
|
|
138
|
+
headers: {
|
|
139
|
+
'Authorization': `Bearer ${SUPABASE_ANON}`,
|
|
140
|
+
'apikey': SUPABASE_ANON,
|
|
141
|
+
'x-user-token': creds.access_token,
|
|
142
|
+
},
|
|
143
|
+
});
|
|
143
144
|
|
|
144
145
|
if (!res.ok) {
|
|
145
146
|
// If token is expired, try to refresh
|