Skip to content

Commit

Permalink
Merge pull request #1 from sdezza/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
JiProchazka authored Oct 23, 2023
2 parents 5e97c6f + fc157fb commit 3c8efc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ That's it! You can now use `useCookiesAuth` in your Nuxt app ✨

```js
// use spread operator for useCookiesAuth composable and useFetch options:
const { data, error } await useFetch("/api/data", {
const { data, error } = await useFetch("/api/data", {
...useCookiesAuth()
})

// with body or other parameters:
const { data, error } await useFetch("/api/data", {
const { data, error } = await useFetch("/api/data", {
...useCookiesAuth(),
method: "POST",
query: {
Expand Down

0 comments on commit 3c8efc9

Please sign in to comment.