BREAKING CHANGE(account): authorization now uses the new Account API

This commit is contained in:
Philipp Kunz 2020-02-19 17:00:31 +00:00
parent a746577945
commit b0fdd520f3

View File

@ -23,11 +23,7 @@ Use TypeScript for best in class instellisense.
```javascript ```javascript
import * as cflare from '@mojoio/cloudflare'; import * as cflare from '@mojoio/cloudflare';
const myCflareAccount = new cflare.CflareAccount(); const myCflareAccount = new cflare.CflareAccount('mySuperAwesomeAccountToken');
testCflareAccount.auth({
email: 'someuser@example.com',
key: 'someLongApiKey'
});
const myAsyncCflareManagement = async () => { const myAsyncCflareManagement = async () => {
// get things // get things