@rubytech/create-maxy 0.4.3 → 0.4.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/package.json
CHANGED
|
@@ -56,7 +56,10 @@ export async function POST() {
|
|
|
56
56
|
const match = output.match(/(https:\/\/claude\.ai\/oauth\/authorize[^\s]+)/)
|
|
57
57
|
if (match) {
|
|
58
58
|
resolved = true
|
|
59
|
-
|
|
59
|
+
// Remove code=true& from the URL — that triggers the fallback flow
|
|
60
|
+
// which shows an auth code. Without it, the flow completes automatically.
|
|
61
|
+
const autoUrl = match[1].replace(/code=true&?/, '').replace(/\?&/, '?')
|
|
62
|
+
resolve(NextResponse.json({ authUrl: autoUrl }))
|
|
60
63
|
}
|
|
61
64
|
}
|
|
62
65
|
|