mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-18 16:34:27 -04:00
Fix change email / password routes.
This commit is contained in:
@@ -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
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user