Commit 7c0b699
committed
fix(provider): auto-refresh AWS SSO credentials on expiry
When fromNodeProviderChain throws CredentialsProviderError (expired or
uninitialized SSO session), spawn 'aws sso login [--profile <name>]',
await successful exit, then retry credential resolution transparently.
The AI SDK never sees an error and the session continues uninterrupted.
Detects by error .name (stable SDK contract) not message string.1 parent dba03a7 commit 7c0b699
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
293 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
294 | 311 | | |
295 | 312 | | |
296 | 313 | | |
| |||
0 commit comments