@tomato414941/foundation 0.13.0 → 0.14.0
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 +1 -1
- package/runtime.mjs +1 -1
package/package.json
CHANGED
package/runtime.mjs
CHANGED
|
@@ -210,7 +210,7 @@ async function main() {
|
|
|
210
210
|
await writeKey(keyPath, made.token, !process.env.FOUNDATION_RUNTIME_KEY_FILE);
|
|
211
211
|
token = made.token; me = null;
|
|
212
212
|
}
|
|
213
|
-
const answer = me?.acts_for?.length ? null : await send('/v1/requests', {
|
|
213
|
+
const answer = me?.acts_for?.length ? null : await send('/v1/requests', { authorization_details: [{ type: 'relation', relation: 'actor' }] });
|
|
214
214
|
if (connectTo !== undefined) await saveUrl(url.origin);
|
|
215
215
|
console.log(answer === null ? 'Already approved on ' + url.origin + '.' : JSON.stringify(answer, null, 2));
|
|
216
216
|
console.log('\nKey file: ' + keyPath + '\nServer: ' + url.origin + (connectTo !== undefined ? ' (saved to ' + configPath() + ')' : '') + '\nEverything else is HTTP: Authorization: Bearer <the contents of that file>');
|