@goodandready/dsh-subscriptions 0.4.20 → 0.4.21
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/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -373,7 +373,7 @@ export function apply(ctx, config) {
|
|
|
373
373
|
verifier: row.verifier,
|
|
374
374
|
challenge: row.challenge,
|
|
375
375
|
state: row.state,
|
|
376
|
-
}, code,
|
|
376
|
+
}, code, fetchForRef(ref))
|
|
377
377
|
const slots = normalizeSlots(live().slots)
|
|
378
378
|
const slot = slots.find((s) => s.ref === ref)
|
|
379
379
|
if (slot && slot.label) blob.label = slot.label
|
|
@@ -921,7 +921,7 @@ export function apply(ctx, config) {
|
|
|
921
921
|
}
|
|
922
922
|
try {
|
|
923
923
|
const cfg = vendorConfig(provider, live())
|
|
924
|
-
const start = await vendor.deviceStart(cfg,
|
|
924
|
+
const start = await vendor.deviceStart(cfg, fetchForRef(oauthRef(provider, index)))
|
|
925
925
|
const state = 'dev-' + Date.now() + '-' + Math.random().toString(36).slice(2, 10)
|
|
926
926
|
sweepPending(Date.now())
|
|
927
927
|
pending.set(state, {
|
|
@@ -970,7 +970,7 @@ export function apply(ctx, config) {
|
|
|
970
970
|
const vendor = getVendor(row.provider)
|
|
971
971
|
try {
|
|
972
972
|
const cfg = vendorConfig(row.provider, live())
|
|
973
|
-
const out = await vendor.devicePoll(cfg, { deviceAuthId: row.deviceAuthId, userCode: row.userCode },
|
|
973
|
+
const out = await vendor.devicePoll(cfg, { deviceAuthId: row.deviceAuthId, userCode: row.userCode }, fetchForRef(row.ref))
|
|
974
974
|
if (out.status !== 'authorized') {
|
|
975
975
|
writeJson(res, 200, { ok: true, status: out.status })
|
|
976
976
|
return
|
package/package.json
CHANGED