have an angular project with a method :
createUSer() {
let params = new HttpParams()
params.append("email","sdfsd@sdsvvvvdf.com")
params.append("password","sdfdfd121")
this.htpClien.get(this.baseUrsl+"createEmployee",
{params:params}).subscribe(sub=>{
})
}
and a function in my firebase functions:
exports.createEmployee = functions.https.onRequest((request, response)=>{
if (request.method === 'GET') {
let email = request.query.email;
let password = request.query.password;
admin.auth().createUser({
email: email,
emailVerified: false,
password: password,
disabled: false
}).then(succes => {
response.send(succes.uid)
}).catch(er => {
response.send(er)
})
}
});
when testing it trough "postman" everything works like it should but when I fire it trough Angular I get "undefined" values of email and password ... what am I doing wrong?:S