n8n-nodes-pronote 0.2.2 → 0.2.5

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/README.md CHANGED
@@ -29,3 +29,5 @@ See `agent-tools/pronoteTools.ts` for a thin wrapper you can drop into LLM agent
29
29
  1) Run **PRONOTE Auth Helper** with operation “Prepare Mobile Validation” and your instance URL. It returns a `deviceUUID` and the `InfoMobileApp.json` URL.
30
30
  2) Open that URL in a browser, approve the device in your CAS portal (e.g., Lycée Connecté). Capture the returned `login` and `mdp` (token).
31
31
  3) Run **PRONOTE Auth Helper** with operation “Validate Mobile Token”, providing the `instanceUrl`, `login`, `mdp`, and the same `deviceUUID`. The node outputs a verified token plus user details—use these in the PRONOTE credentials.
32
+
33
+ > Use `mobileToken` (mdp) + `deviceUUID` in the PRONOTE credentials. The `sessionToken` returned is short‑lived; nodes will re-login with the mobile token on each run.
@@ -178,7 +178,8 @@ class PronoteAuthHelper {
178
178
  instanceUrl: auth.url,
179
179
  deviceUUID: auth.deviceUUID,
180
180
  username: auth.username,
181
- token: auth.token,
181
+ mobileToken: token,
182
+ sessionToken: auth.token,
182
183
  kind: auth.kind,
183
184
  userDisplayName: auth.session.user.name,
184
185
  establishment: auth.session.user.resources[0]?.establishmentName,
@@ -209,7 +210,7 @@ class PronoteAuthHelper {
209
210
  instanceUrl: auth.url,
210
211
  deviceUUID: auth.deviceUUID,
211
212
  username: auth.username,
212
- token: auth.token,
213
+ sessionToken: auth.token,
213
214
  kind: auth.kind,
214
215
  userDisplayName: auth.session.user.name,
215
216
  establishment: auth.session.user.resources[0]?.establishmentName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-pronote",
3
- "version": "0.2.2",
3
+ "version": "0.2.5",
4
4
  "description": "n8n custom nodes and agent utilities to talk to PRONOTE via the Pawnote library.",
5
5
  "license": "MIT",
6
6
  "main": "dist/nodes/Pronote/Pronote.node.js",