snapcraft supports programmatic login via a file or an environment variable. I couldn’t find anything similar for
Is there a way to programmatically login to the Snapstore with
snap (bypass password/2FA prompt)?
I thought about running
snap login on my local machine and pushing
$HOME/.snap/auth.json where I need it but:
- I don’t know what is the TTL for this token
- This not convenient