Learn how to programmatically refresh AWS SSO credentials to prevent token expiration during long-running Metaflow jobs. Complete guide with scripts and best practices.