I am currently working on a project where the parking lot owners should use website login and other users should use mobile app login.
But currently any user can login into both of the website and mobile app.

here is my firebase realtime database
[my realtime database](https://i.stack.imgur.com/AA8Kf.png)

So as you can see I defined type in user. when signing up a user gets a type depending on the device he/she registering

and my web sign in function is like this:

```
    signInWithEmailAndPassword(auth, email, password).then((userCredential) => {
    const user = userCredential.user;

    alert('User Logged in!');
    window.location = 'user.html';
}).catch((error) => {
    const errorCode = error.code;
    const errorMessage = error.message;
    alert(errorMessage);
});

```

How can I provide login for the users which have 'type = web' ?