fix(desktop): correct user code extraction when URL contains colons (#28837)

This commit is contained in:
OpeOginni 2026-05-22 15:16:33 +02:00 committed by GitHub
parent 63f3e84792
commit 3cf955e9ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -524,7 +524,7 @@ export function DialogConnectProvider(props: { provider: string }) {
const code = createMemo(() => {
const instructions = store.authorization?.instructions
if (instructions?.includes(":")) {
return instructions.split(":")[1]?.trim()
return instructions.split(":").pop()?.trim()
}
return instructions
})