We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d2363d commit 99b34d2Copy full SHA for 99b34d2
1 file changed
vscode/extension/src/auth/auth.ts
@@ -97,6 +97,9 @@ export class AuthenticationProviderTobikoCloud
97
return []
98
}
99
const token = statusResponse.id_token
100
+ if (!token) {
101
+ throw new Error("Invalid state from tcloud, failed to get token.")
102
+ }
103
const session = {
104
id: token.email,
105
account: {
@@ -120,6 +123,9 @@ export class AuthenticationProviderTobikoCloud
120
123
throw new Error("Failed to login to tcloud")
121
124
122
125
126
127
+ throw new Error("Failed to get tcloud token")
128
129
const session: AuthenticationSession = {
130
131
0 commit comments