@getpara/react-native-wallet 1.13.0-dev.2 → 1.13.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,5 +48,5 @@ export declare class ParaMobile extends ParaCore {
|
|
|
48
48
|
* @param {AuthParams} params - The authentication parameters.
|
|
49
49
|
* @returns {Promise<void>}
|
|
50
50
|
*/
|
|
51
|
-
login({ ...auth }: Auth<'email'
|
|
51
|
+
login({ ...auth }: Partial<Auth<'email'>> | Partial<Auth<'phone'>>): Promise<void>;
|
|
52
52
|
}
|
package/package.json
CHANGED
|
@@ -186,7 +186,7 @@ export class ParaMobile extends ParaCore {
|
|
|
186
186
|
* @param {AuthParams} params - The authentication parameters.
|
|
187
187
|
* @returns {Promise<void>}
|
|
188
188
|
*/
|
|
189
|
-
async login({ ...auth }: Auth<'email'
|
|
189
|
+
async login({ ...auth }: Partial<Auth<'email'>> | Partial<Auth<'phone'>>): Promise<void> {
|
|
190
190
|
await this.logout();
|
|
191
191
|
|
|
192
192
|
const authInfo = extractAuthInfo(auth, { isRequired: false });
|