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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchman-dev",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Project manager for AI coding assistants running safely on one codebase",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -134,12 +134,13 @@ export async function checkLicence() {
134
134
 
135
135
  // Try live validation
136
136
  try {
137
- const res = await fetch(VALIDATE_URL, {
138
- headers: {
139
- 'Authorization': `Bearer ${creds.access_token}`,
140
- 'apikey': SUPABASE_ANON,
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