We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b46a68c commit 7d2363dCopy full SHA for 7d2363d
1 file changed
vscode/extension/src/auth/auth.ts
@@ -27,9 +27,10 @@ const tokenSchema = z.object({
27
exp: z.number(),
28
email: z.string(),
29
})
30
+
31
const statusResponseSchema = z.object({
32
is_logged_in: z.boolean(),
- id_token: tokenSchema,
33
+ id_token: tokenSchema.optional().nullable(),
34
35
36
type StatusResponse = z.infer<typeof statusResponseSchema>;
@@ -298,7 +299,9 @@ export class AuthenticationProviderTobikoCloud
298
299
)
300
301
if (messageResult === "Open browser") {
- await env.openExternal(Uri.parse(deviceCodeResponse.verification_uri_complete))
302
+ await env.openExternal(
303
+ Uri.parse(deviceCodeResponse.verification_uri_complete)
304
+ )
305
}
306
if (messageResult === "Cancel") {
307
ac.abort()
0 commit comments