We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df6c5b5 commit d2879bbCopy full SHA for d2879bb
src/user.ts
@@ -39,9 +39,7 @@ export function logout(): Promise<string> {
39
}
40
41
export async function getCurrentUser(): Promise<User | null> {
42
- const user = await tuya.getCurrentUser();
43
- // The iOS SDK returns an empty user model but the Android one doesn't.
44
- return user && user.email ? user : null;
+ return await tuya.getCurrentUser();
45
46
47
export function cancelAccount(): Promise<string> {
0 commit comments