Oauth in javascript

I am creating a web application and I want users to be able to authenticate using facebook, gmail from OAuth. I thought I would use a server-side solution, but I found this:

https://oauth.io/

And my question. What do you think of it?)? It is safe? Better to use a server solution or client? It is very simple, but I am new to JS and I don’t know what to do about it. Thanks for all the answers.

+4
source share
1 answer

This is only safe if you trust the organization that provides this service. It looks like they can impersonate the user, your application, and the OAuth provider.

pure js, . OAuth .

, . , , - OAuth API- OAuth / OAuth. , OAuth .

oauth.io , : https://github.com/oauth-io/oauthd

+3

Source: https://habr.com/ru/post/1532657/


All Articles