I am building a mobile app for a company with a few employees. Each employee has a unique employee ID that can be used as their account identifier. I would like to know how I could create these users in firebase using their employee ID as the username / id as a preset password.
Something like:
[
{
"emp_id": 123, //Login username
"passwordHash": "LKWrHLwsFlbY4AylsPQ", //Password
"name": "John Doe"
},
{
"emp_id": 456,
"passwordHash": "ZQXyTXf8EXlAWX1f",
"name": "Jane Doe"
}
]
The employees will have an ID to login that will never change and a password that they can change at will. There is no way to sign up / register. Any new employee will be manually added by an admin.
How to I set up this type of authentication method in firebase? They seem to be forcing their own auth systems (which are neat and all, but not what I need)