I’ve an internet site constructed on PHP, and now I would like customers to have the ability to log in. I don’t wish to handle consumer administration myself, so I am considering that social check in can be handy each for myself and for the customers. The web site is a standard “server rendered” web site, i.e. I’ve a database on my server, and my PHP-scripts want some type of consumer authentication/consumer id in an effort to insert and retrieve stuff from the database.
I’ve used Firebase auth and FirebaseUI for “shopper aspect” web sites earlier than, which is very nice since they handle all the things, together with the UI and login stream.
However relating to utilizing it for a standard “server-side” utility, I am confused. I suppose I can use FirebaseUI on the browser to get the consumer to check in and retrieve a JWT token, however then what? How would I move it to the server scripts on every request? Or ought to I simply move it as soon as and begin a session based mostly on the data within the JWT token? Or ought to I exploit one thing solely totally different?