diff --git a/CHANGELOG.md b/CHANGELOG.md index c540fc2b..8eb7f717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ Server and open synchronized Realms (#1276). ### Bug fixes * Removed a false negative warning when using `User.createConfiguration`. +* Fixed the type definition for `User.authenticate`. ### Internal * Realm Core v5.7.2. diff --git a/lib/index.d.ts b/lib/index.d.ts index 21a07785..2cc415d0 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -321,6 +321,7 @@ declare namespace Realm.Sync { */ static registerWithProvider(server: string, options: { provider: string, providerToken: string, userInfo: any }, callback: (error: Error | null, user: User | null) => void): void; static registerWithProvider(server: string, options: { provider: string, providerToken: string, userInfo: any }): Promise; + static authenticate(server: string, provider: string, options: any): Promise; static requestPasswordReset(server: string, email: string): Promise; @@ -333,7 +334,6 @@ declare namespace Realm.Sync { static deserialize(serialized: SerializedUser): Realm.Sync.User; createConfiguration(config?: Realm.PartialConfiguration): Realm.Configuration - authenticate(server: string, provider: string, options: any): Promise; serialize(): SerializedUser; logout(): void; openManagementRealm(): Realm;