Fix change email / password routes.

This commit is contained in:
Paul
2021-09-13 16:29:42 +01:00
parent 1172fedbff
commit 9e89c6ca5c
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ client.loginBot('..');
client.login({ email: '..', password: '..' });
// Or use an existing session:
client.useExistingSession({ user_id: '..', session_token: '..' });
client.useExistingSession({ token: '..' });
```
## MobX
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "revolt.js",
"version": "5.1.0-alpha.0-patch.0",
"version": "5.1.0-alpha.0-patch.1",
"main": "dist/index.js",
"repository": "https://gitlab.insrt.uk/revolt/revolt.js",
"author": "Paul Makles <insrt.uk>",
+2 -2
View File
@@ -79,7 +79,7 @@ type Routes =
response: undefined
}
| {
method: 'POST',
method: 'PATCH',
route: `/auth/account/change/password`,
data: {
password: string,
@@ -88,7 +88,7 @@ type Routes =
response: undefined
}
| {
method: 'POST',
method: 'PATCH',
route: `/auth/account/change/email`,
data: {
email: string,