feat(firebase-authentication) add getCurrentUser() definitio (#3701)

This commit is contained in:
Anthony 2021-08-02 22:39:38 +02:00 committed by GitHub
parent 93b1e11898
commit f852dd9510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,17 @@ import { Observable } from 'rxjs';
}) })
@Injectable() @Injectable()
export class FirebaseAuthentication extends IonicNativePlugin { export class FirebaseAuthentication extends IonicNativePlugin {
/**
* Returns the current user logged in Firebase service
* @return {Promise<any>} Returns the user info
*/
@Cordova({ sync: true })
getCurrentUser(): Promise<any> {
return;
}
/** /**
* Returns a JWT token used to identify the user to a Firebase service. * Returns a JWT token used to identify the user to a Firebase service.
* @param forceRefresh {boolean} Force Refresh * @param forceRefresh {boolean} Force Refresh