Skip to content

Commit

Permalink
docs(utils): fix a typo in description and spacing in code sample (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailarilik committed Mar 9, 2024
1 parent ffaf11b commit 8d4aaa3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/methods/utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ auth.redirect() => {

Returns redirect caused by the vue-auth plugin.

This includes a status code to indicate what caused the redirect. This is useful for cased where a login redirect has occurred or even for debugging.
This includes a status code to indicate what caused the redirect. This is useful for cases where a login redirect has occurred or even for debugging.

#### Examples

Expand All @@ -75,16 +75,16 @@ This includes a status code to indicate what caused the redirect. This is useful
const auth = useAuth()
function login() {
const redirect =auth.redirect();
auth
.login({
...
redirect: {
name: redirect ? redirect.from.name : 'user-account'
}
});
}
const redirect = auth.redirect();
auth
.login({
...
redirect: {
name: redirect ? redirect.from.name : 'user-account'
}
});
}
</script>
```

Expand Down

0 comments on commit 8d4aaa3

Please sign in to comment.