@xCausxn I am going to try out what you have said. But, I also wanted to know if this will work for Social logins on my website?
The users on my website can use Facebook, Google+ or local login to register to the website and use it. Now if I create the oauth system on my server, will it also be able to handle FB logins?
Sorry, I am pretty new to all this and still am figuring things out. Even if you can point me to the right direction, I'd be grateful.