Skip to content

Commit

Permalink
docs(register-and-login): fix a code sample (#30)
Browse files Browse the repository at this point in the history
Both type error and whitespace
  • Loading branch information
ismailarilik committed Mar 7, 2024
1 parent 999c061 commit 038b640
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions docs/methods/register-and-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,22 @@ The initial request to FB, Google, etc.
<script lang="ts" setup>
const auth = useAuth()
function oauth2() {
auth
.oauth2({
params: {
client_id: 'FACEBOOK_CLIENT_ID'
...
},
remember: 'Rob',
staySignedIn: true,
fetchUser: true,
window: {
name: '_blank',
specs: {},
replace: false
}
});
}
function oauth2() {
auth.oauth2({
params: {
client_id: 'FACEBOOK_CLIENT_ID'
...
},
remember: true,
staySignedIn: true,
fetchUser: true,
window: {
name: '_blank',
specs: {},
replace: false
}
});
}
</script>
```

Expand Down

0 comments on commit 038b640

Please sign in to comment.