-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I'm submitting a
Feature request
Description
Right now Simpla is tightly coupled to using Github as a backend. Instead, we should split both Auth and Storage into adapters. Under this setup the auth adapter would handle everything to do with user management, rather than just authenticating an access token with github, and the storage adapter would just check with the auth adapter whether a change can be written, and then go ahead and write that change to where it's configured to.
Public API would stay relatively unchanged
Simpla.init({
storage: new SimplaGithub({ repo: 'username/repo' }),
auth: new SimplaNetlify({ site: 'mysite' }),
...
});querafael