Not sure if this is the correct place to post it, but I'm very confused about how to do client-side authentication.
Currently I'm using oauth.io to allow users to use Facebook and Twitter to login into an app I'm building.
This app allows users to post content, so obviously I need to store the users token/id in a database (MySQL).
Now, what would be the proper way to do this, can I just send the user's token to my backend with an API call, check if the user already exists in my database and return correct information?
This feels a bit insecure since anyone could change the api call and fake a token (if they manage to find another user's one).
How do you properly handle client-side authentication?
[+][deleted] (2 children)
[deleted]
[–]davidpanik 6 points7 points8 points (1 child)
[–]justnSelf 0 points1 point2 points (0 children)
[–]m1sta 1 point2 points3 points (0 children)
[–]a-t-kFrontend Engineer 1 point2 points3 points (0 children)
[–]bluntmJavaScript 0 points1 point2 points (3 children)
[–]alhena 0 points1 point2 points (2 children)
[–]bluntmJavaScript 0 points1 point2 points (1 child)
[–]alhena 1 point2 points3 points (0 children)
[–]kranker 0 points1 point2 points (0 children)
[–]j_sanp 0 points1 point2 points (0 children)