We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e24706d commit 99925c9Copy full SHA for 99925c9
1 file changed
auth.ts
@@ -70,10 +70,17 @@ export function createTrpcClient(debug: boolean, deployUrl: string) {
70
}
71
72
if (tokenIsTemp) {
73
- error(
74
- debug,
75
- "The token specified via 'DENO_DEPLOY_TOKEN' is invalid.",
76
- );
+ if (token_storage.get()?.startsWith("ddo_")) {
+ error(
+ debug,
+ "Organization tokens cannot be used for the 'deno deploy' subcommand.",
77
+ );
78
+ } else {
79
80
81
+ "The token specified via 'DENO_DEPLOY_TOKEN' or the '--token' flag is invalid.",
82
83
+ }
84
85
86
if (typeof retryPromise !== "undefined") {
0 commit comments