Commit b0cb68a
committed
fix(auth): fix device code login crash
Two bugs prevented 'ado login --method device' from working:
1. The Microsoft identity platform device code API response
uses 'verification_url' (not 'verification_uri'), causing
a WithClauseError on the pattern match in request_device_code/1.
2. CLI.color/2 returns an IO list (not a string), so string
interpolation in login_device_code/1 raised ArgumentError.
Fixed by passing the color list directly to CLI.writeln/1
as an IO list.
Verified locally against the live Microsoft identity platform.1 parent cae1fe9 commit b0cb68a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| |||
0 commit comments