@magpie-community/opencode-mimo-auth 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/index.mjs +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -493,8 +493,8 @@ export const MimoAuthPlugin = async ({ client }) => {
493
493
  const p = await waitPoll(t)
494
494
  const { creds, cookies } = await signedInWith(p, t.device)
495
495
  return { ...toAuth(creds, cookies, Date.now()), type: "success" }
496
- } catch {
497
- return { type: "failed" }
496
+ } catch (e) {
497
+ return { type: "failed", error: e.message }
498
498
  }
499
499
  },
500
500
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magpie-community/opencode-mimo-auth",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "OpenCode provider plugin for Xiaomi MiMo: the MiMo app's Xiaomi-account sign-in, MiMo Pro and MiMo Flash",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",