Fix type definitions for authenticate (#2000)

* Fix type definitions for authenticate

* Update CHANGELOG.md
This commit is contained in:
Nikola Irinchev 2018-08-30 16:20:29 +02:00 committed by GitHub
parent 38190b7a35
commit 81cb7c4636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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.

2
lib/index.d.ts vendored
View File

@ -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<Realm.Sync.User>;
static authenticate(server: string, provider: string, options: any): Promise<Realm.Sync.User>;
static requestPasswordReset(server: string, email: string): Promise<void>;
@ -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<Realm.Sync.User>;
serialize(): SerializedUser;
logout(): void;
openManagementRealm(): Realm;