I need a login system for my website through which i can securely authenticate my users on my ws server. The client side code is a javascript function, which is able to send a token over as a packet and the server side code gets the packet and gets the string out of it. From here i could connect with a datebase or whatever.
My problem is, i don't want to send over the username and password, because this seems very unsecure to me. Is there any way to authenticate through a secure way? I just want to let the server check if the user is loggin in and if that's the case which account it is. I was thinking about google auth, but i don't know where to start.
I hope you can help me. Kind regrads,
Simon