Skip to content

Commit

Permalink
docs: Update authentication.
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Oct 2, 2023
1 parent 58fa060 commit 5834ac8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/docs/stories/getting-started/002.authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Otherwise, if you need to get it from a **web application**, you can use the Com


## Configure the `CommerceLayer` component
Once you got it, you can pass it as prop — together with the endpoint of your Commerce Layer organization — to the `CommerceLayer` component, as follow:
Once you got it, you can pass it as prop to the `CommerceLayer` component, as follow:

<Source
language="jsx"
Expand All @@ -44,13 +44,8 @@ Once you got it, you can pass it as prop — together with the endpoint of your
import { CommerceLayer } from '@commercelayer/react-components'
const App = () => (
<CommerceLayer
accessToken="your-access-token"
endpoint="https://yourdomain.commercelayer.io"
>
<CommerceLayer accessToken="your-access-token">
{/* ... child components */}
</CommerceLayer>
)
`}
Expand Down

0 comments on commit 5834ac8

Please sign in to comment.