10 lines
361 B
TypeScript
10 lines
361 B
TypeScript
import { getSetupToken, readAuthState } from "../src/features/auth/auth.server";
|
|
|
|
if (!readAuthState().needsSetup) {
|
|
console.error("This workspace already has an owner. Sign in with your existing account.");
|
|
process.exitCode = 1;
|
|
} else {
|
|
console.log("Open /setup in your workspace and enter this one-time setup code:");
|
|
console.log(getSetupToken());
|
|
}
|