Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
how to initiate nhost { auth, storage }
Browse files Browse the repository at this point in the history
  • Loading branch information
elitan committed Jul 11, 2020
1 parent e2ec7d8 commit da1d778
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ ReactDOM.render(
);
```

`utils/nhost.js`

```js
import nhost from "nhost-js-sdk";

const config = {
base_url: "https://backend-xxx-nhost.app",
};

nhost.initializeApp(config);

const auth = nhost.auth();
const storage = nhost.storage();

export { auth, storage };
```

### NextJS

_(coming soon)_
Expand Down

0 comments on commit da1d778

Please sign in to comment.