Comparing version 1.2.1 to 1.2.2
@@ -41,10 +41,8 @@ // @ts-check | ||
try { | ||
const pid = | ||
providerId ?? | ||
(await select({ | ||
message: "What provider do you want to set up?", | ||
choices: choices, | ||
})) | ||
providerId ??= await select({ | ||
message: "What provider do you want to set up?", | ||
choices: choices, | ||
}) | ||
const provider = providers[pid] | ||
const provider = providers[providerId] | ||
if (!provider?.setupUrl) { | ||
@@ -54,3 +52,3 @@ console.error( | ||
`Missing instructions for ${ | ||
provider?.name ?? pid | ||
provider?.name ?? providerId | ||
}.\nInstructions are available for: ${y.bold( | ||
@@ -140,3 +138,3 @@ choices.map((choice) => choice.name).join(", ") | ||
const varPrefix = `AUTH_${pid.toUpperCase()}` | ||
const varPrefix = `AUTH_${providerId.toUpperCase()}` | ||
await updateEnvFile({ | ||
@@ -143,0 +141,0 @@ [`${varPrefix}_ID`]: clientId, |
{ | ||
"name": "auth", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"homepage": "https://cli.authjs.dev", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41616
957