Skip to content

Commit

Permalink
auth.sendResetPassword() should not trigger auth change. bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Jan 17, 2024
1 parent 5eadfeb commit 5c78c57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 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",
Expand Down
6 changes: 1 addition & 5 deletions src/Auth.ts
Expand Up @@ -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<PopupSettings> = {}) {
Expand Down

0 comments on commit 5c78c57

Please sign in to comment.