Skip to content
This repository was archived by the owner on Sep 12, 2022. It is now read-only.

Commit 62ddfea

Browse files
authored
Update README.md
1 parent 9e4bcf2 commit 62ddfea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ You will receive the `vendor/larapass/js/larapass.js` file which you can include
173173
const login = (event) => {
174174
event.preventDefault()
175175
new Larapass({
176-
login: 'webauthn/register',
177-
loginOptions: 'webauthn/register/options'
176+
login: 'webauthn/login',
177+
loginOptions: 'webauthn/login/options'
178178
}).login({
179179
email: document.getElementById('email').value
180180
}).then(response => alert('Authentication successful!'))
@@ -191,8 +191,8 @@ Also, the helper allows headers on the action request, on both registration and
191191

192192
```javascript
193193
new Larapass({
194-
login: 'webauthn/register',
195-
loginOptions: 'webauthn/register/options'
194+
login: 'webauthn/login',
195+
loginOptions: 'webauthn/login/options'
196196
}).login({
197197
email: document.getElementById('email').value,
198198
}, {

0 commit comments

Comments
 (0)