mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 07:14:23 +00:00
Fix type definitions for authenticate (#2000)
* Fix type definitions for authenticate * Update CHANGELOG.md
This commit is contained in:
parent
38190b7a35
commit
81cb7c4636
@ -16,6 +16,7 @@ Server and open synchronized Realms (#1276).
|
|||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
* Removed a false negative warning when using `User.createConfiguration`.
|
* Removed a false negative warning when using `User.createConfiguration`.
|
||||||
|
* Fixed the type definition for `User.authenticate`.
|
||||||
|
|
||||||
### Internal
|
### Internal
|
||||||
* Realm Core v5.7.2.
|
* Realm Core v5.7.2.
|
||||||
|
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -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 }, 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 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>;
|
static requestPasswordReset(server: string, email: string): Promise<void>;
|
||||||
|
|
||||||
@ -333,7 +334,6 @@ declare namespace Realm.Sync {
|
|||||||
static deserialize(serialized: SerializedUser): Realm.Sync.User;
|
static deserialize(serialized: SerializedUser): Realm.Sync.User;
|
||||||
|
|
||||||
createConfiguration(config?: Realm.PartialConfiguration): Realm.Configuration
|
createConfiguration(config?: Realm.PartialConfiguration): Realm.Configuration
|
||||||
authenticate(server: string, provider: string, options: any): Promise<Realm.Sync.User>;
|
|
||||||
serialize(): SerializedUser;
|
serialize(): SerializedUser;
|
||||||
logout(): void;
|
logout(): void;
|
||||||
openManagementRealm(): Realm;
|
openManagementRealm(): Realm;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user