After watching this video you will have a clear idea about how to connect your frontend authentication part with the backend. I have created the code example using React JS but the concept is the same for other frameworks.
I have coded the sign-in, sign-up, and sign-out functionalities inside a react context. Therefore, I will be able to access them easily in other components.
Therefore, you can learn about react context also.
I have explained all code samples. Therefore, you will be able to understand them easily.