nebular auth making request with OPTION method not POST
- Langage dominant
- TypeScript
- Étoiles
- 8.1k
- Forks
- 1.5k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Issue type
**I'm submitting a ...** (check one with "x")
* [ x] bug report
* [ ] feature request
### Issue description
**Current behavior:**
Auth module making request with OPTION method not POST even i have define post method in strategies.
**Expected behavior:**
it should make request using post method so that i can debug which fields are being sent to server.
**Steps to reproduce:**
**Related code:**
```
NbPasswordAuthStrategy.setup({
name: 'email',
baseEndpoint: 'http://127.0.0.1:8000/api',
token: {
class: NbAuthJWTToken,
key: 'token',
},
login: {
endpoint: '/auth/sign-in',
method: 'post',
redirect: {
success: '/dashboard/',
failure: null,
},
defaultErrors: ['Unable to login, please try again.'],
},
register: {
endpoint: '/auth/sign-up',
method: 'post',
redirect: {
success: '/mailbox/',
failure: null,
},
},
logout: {
endpoint: '/auth/sign-out',
method: 'post',
},
requestPass: {
endpoint: '/auth/request-pass',
method: 'post',
},
resetPass: {
endpoint: '/auth/reset-pass',
method: 'post',
},
validation: {
fullName: {
required: true,
minLength: 4,
maxLength: 50,
},
}
}),
],
forms: {},
})
```
### Other information:
**npm, node, OS, Browser**
```
Node, npm: `node --8.1.3` and `npm --6.4.1`
OS: Windows 10
Browser: Chrome
```

Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.