But this command suddenly started giving error saying "error: cannot decode auth file “./store.auth”: invalid character ‘e’ looking for beginning of value"
Did the method to download snap change in the recent snapcraft update?
Is this a bug ?
This might be an incompatibility between the version of snapcraft you used to generate your credentials file and the format supported by snapd (and snap command). Please ensure you are using snapcraft 6.x or older to generate the credential file; specifically unless something has changed while I wasn’t looking, the authentication file produced by snapcraft 7 and newer is incompatible with what snapd/snap expect.