@hellocoop/quickstart 2.0.1 → 2.2.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/README.md +2 -2
- package/package.json +1 -1
- package/page.js +1 -7
- package/quickstart.mjs +4 -4
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ This will open up a browser window, where you will need to login with Hellō, an
|
|
|
14
14
|
- --provider_hint (-p) - space separated string of provider_hint
|
|
15
15
|
- --suffix (-x) - suffix to add to generated app name
|
|
16
16
|
- --integration (-i) - integration name shown in console
|
|
17
|
-
- --file (-f) - file to write out
|
|
18
|
-
- --secret (-s) - boolean to generate a
|
|
17
|
+
- --file (-f) - file to write out HELLO_CLIENT_ID
|
|
18
|
+
- --secret (-s) - boolean to generate a HELLO_COOKIE_SECRET value
|
|
19
19
|
- --wildcard (-w) - boolean to set the wildcard domain Development Redirect URI
|
|
20
20
|
- --debug (-d) - output debug info
|
|
21
21
|
|
package/package.json
CHANGED
package/page.js
CHANGED
|
@@ -57,13 +57,7 @@ export default function (client_id) {
|
|
|
57
57
|
</ul>
|
|
58
58
|
<a href="https://console.hello.coop/?client_id=${client_id}" style="font-weight: 500;">at the Hellō Developer Console</a>
|
|
59
59
|
</div>
|
|
60
|
-
<p style="margin:
|
|
61
|
-
<div style="display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;">
|
|
62
|
-
<p style="display: flex; justify-content: center; align-items: center; gap: 20px;">
|
|
63
|
-
<a href="https://www.hello.coop/">Learn more about Hellō</a>
|
|
64
|
-
<a href="https://www.hello.dev/">Hellō Developer Docs</a>
|
|
65
|
-
</p>
|
|
66
|
-
</div>
|
|
60
|
+
<p style="margin: 48px 0; font-size: 26px;">You may now close this window.</p>
|
|
67
61
|
</main>
|
|
68
62
|
</body>
|
|
69
63
|
</html>`
|
package/quickstart.mjs
CHANGED
|
@@ -60,9 +60,9 @@ const {
|
|
|
60
60
|
import 'dotenv/config'
|
|
61
61
|
import quickstart from './index.js';
|
|
62
62
|
|
|
63
|
-
const existingClientId = process.env.
|
|
63
|
+
const existingClientId = process.env.HELLO_CLIENT_ID
|
|
64
64
|
if (existingClientId) {
|
|
65
|
-
console.error(`
|
|
65
|
+
console.error(`HELLO_CLIENT_ID already set to ${existingClientId}`)
|
|
66
66
|
process.exit(0);
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -102,10 +102,10 @@ if (debug) {
|
|
|
102
102
|
if (file) {
|
|
103
103
|
let helloConfig = `
|
|
104
104
|
# added by @hellocoop/quickstart-nextjs on ${(new Date()).toISOString()}
|
|
105
|
-
|
|
105
|
+
HELLO_CLIENT_ID='${output.client_id}'`
|
|
106
106
|
if (secret) {
|
|
107
107
|
helloConfig +=`
|
|
108
|
-
|
|
108
|
+
HELLO_COOKIE_SECRET='${output.secret}'
|
|
109
109
|
`
|
|
110
110
|
}
|
|
111
111
|
const outputFile = process.cwd()+'/'+file
|