@popoverai/dotrequirements 0.27.3 → 0.27.4
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/dist/commands/link.js
CHANGED
|
@@ -135,6 +135,7 @@ async function runNonInteractiveLink(options) {
|
|
|
135
135
|
projectName: match.projectName,
|
|
136
136
|
renamed: false,
|
|
137
137
|
settingsPath,
|
|
138
|
+
signedInAs: oauthResult.email,
|
|
138
139
|
...artifacts,
|
|
139
140
|
});
|
|
140
141
|
return;
|
|
@@ -189,6 +190,7 @@ async function runNonInteractiveLink(options) {
|
|
|
189
190
|
projectName: name,
|
|
190
191
|
renamed: false,
|
|
191
192
|
settingsPath,
|
|
193
|
+
signedInAs: oauthResult.email,
|
|
192
194
|
...artifacts,
|
|
193
195
|
});
|
|
194
196
|
return;
|
|
@@ -227,6 +229,7 @@ async function runNonInteractiveLink(options) {
|
|
|
227
229
|
projectName,
|
|
228
230
|
renamed,
|
|
229
231
|
settingsPath,
|
|
232
|
+
signedInAs: oauthResult.email,
|
|
230
233
|
...artifacts,
|
|
231
234
|
});
|
|
232
235
|
}
|
package/dist/utils/oauth-flow.js
CHANGED
|
@@ -66,12 +66,19 @@ export async function executeOAuthFlow() {
|
|
|
66
66
|
if (!result.success) {
|
|
67
67
|
throw new Error(`Token exchange failed: ${result.error}`);
|
|
68
68
|
}
|
|
69
|
-
const { accessToken, refreshToken, expiresAt } = result;
|
|
69
|
+
const { accessToken, refreshToken, expiresAt, email } = result;
|
|
70
70
|
console.log("✓ Authentication complete!");
|
|
71
|
+
// LINK-14 / INIT-20: name the account we signed in as. The browser session
|
|
72
|
+
// decides which identity authenticates; surfacing it here (one site shared by
|
|
73
|
+
// link, init, and the invite flow) makes a wrong-account login visible before
|
|
74
|
+
// anything is saved. In JSON mode the callers route console.log to stderr, so
|
|
75
|
+
// this line never corrupts a machine-readable result.
|
|
76
|
+
console.log(`Signed in as ${email}`);
|
|
71
77
|
return {
|
|
72
78
|
accessToken,
|
|
73
79
|
refreshToken,
|
|
74
80
|
expiresAt,
|
|
81
|
+
email,
|
|
75
82
|
};
|
|
76
83
|
}
|
|
77
84
|
/**
|