refactor to inject a store, name as the accountId and polishes

Do we leave the option to enter an empty baseURL?
If yes, in that case maybe we should check for either baseURL or authzEndpoint.