Skip to content

Commit

Permalink
add import part to Getting started to make the document clearer (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
thundermiracle authored and Steve Hobbs committed Nov 29, 2019
1 parent f0512fd commit 8ceb626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ yarn add @auth0/auth0-spa-js
Create an `Auth0Client` instance before rendering or initializing your application. You should only have one instance of the client.

```js
import createAuth0Client from '@auth0/auth0-spa-js';

//with async/await
const auth0 = await createAuth0Client({
domain: '<AUTH0_DOMAIN>',
Expand Down

0 comments on commit 8ceb626

Please sign in to comment.