Autodetect credentials
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### Bug Description
`snapcraft` doesn't detect OAuth flow credentials.
```
craft-store error: Credentials could not be parsed. Expected valid Ubuntu One credentials.
```
It should be able to detect which credentials is used without `SNAPCRAFT_STORE_AUTH=candid` explicitly.
### To Reproduce
Set `SNAPCRAFT_STORE_AUTH=candid` when `export-login` and then try to use that file for publishing snap.
### Environment
`ubuntu-latest.
### snapcraft.yaml
```shell
core:22
```
### Relevant log output
```shell
Run snapcore/action-publish@v1
Publishing snap "snapcrafting/myip/myip_1_amd64.snap"...
/snap/bin/snapcraft upload snapcrafting/myip/myip_1_amd64.snap --release stable
Starting Snapcraft 7.4.3
Logging execution to '/home/runner/.local/state/snapcraft/log/snapcraft-20230623-043854.750010.log'
craft-store error: Credentials could not be parsed. Expected valid Ubuntu One credentials.
Full execution log: '/home/runner/.local/state/snapcraft/log/snapcraft-20230623-043854.750010.log'
Error: The process '/snap/bin/snapcraft' failed with exit code 1
```
### Additional context
_No response_
Evaluation history
No evaluation history available.