First one, you should do the then on your component like below: Your service: signinUser( email: string, password: string) { return firebase. signInWithEmailAndPassword( email. Here is a simple example to help you. You need to use $ _ SESSION variables.