diff --git a/packages/core/sdk/src/auth/internal/CoreStitchAuth.ts b/packages/core/sdk/src/auth/internal/CoreStitchAuth.ts index 8257c7733..cc5429fc7 100644 --- a/packages/core/sdk/src/auth/internal/CoreStitchAuth.ts +++ b/packages/core/sdk/src/auth/internal/CoreStitchAuth.ts @@ -383,7 +383,14 @@ export default abstract class CoreStitchAuth credential: StitchCredential ): Promise { if (credential instanceof StitchAuthResponseCredential) { - return this.processLogin(credential, credential.authInfo, credential.asLink); + return this.processLogin(credential, credential.authInfo, credential.asLink).then(user => { + this.dispatchAuthEvent({ + kind: AuthEventKind.UserLoggedIn, + loggedInUser: user + }); + + return user; + }); } /* @@ -875,7 +882,7 @@ export default abstract class CoreStitchAuth // Dispatch a UserAdded event if this is the first time this user is // Being added to the list of users on the device. if (newUserAdded) { - this.onAuthEvent() // Tegacy event dispatch + this.onAuthEvent() // Legacy event dispatch this.dispatchAuthEvent({ addedUser: this.currentUser,