diff --git a/package.json b/package.json index 3f5b030..6396391 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "colyseus.js", - "version": "0.15.15", + "version": "0.15.16", "description": "Colyseus Multiplayer SDK for JavaScript/TypeScript", "author": "Endel Dreyer", "license": "MIT", diff --git a/src/Auth.ts b/src/Auth.ts index 2c20df0..bc43d82 100644 --- a/src/Auth.ts +++ b/src/Auth.ts @@ -100,13 +100,9 @@ export class Auth { } public async sendPasswordResetEmail(email: string) { - const data = (await this.http.post(`${this.settings.path}/forgot-password`, { + return (await this.http.post(`${this.settings.path}/forgot-password`, { body: { email, } })).data; - - this.emitChange(data); - - return data; } public async signInWithProvider(providerName: string, settings: Partial = {}) {