Passing OAuth Client ID directly to react-google-login will expose our credentials #181
-
Hello everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, you can’t do oauth from a browser securely. This isn’t an npm-related question; please close it. |
Beta Was this translation helpful? Give feedback.
-
@AminRafaey indeed, you'll want to use a different OAuth 2.0 grant type for browser-based applications, commonly recommended now is the PKCE flow. But this isn't an npm issue, so shouldn't be here on the npm RFCs discussion board. You can likely find more answers on stackoverflow. |
Beta Was this translation helpful? Give feedback.
@AminRafaey indeed, you'll want to use a different OAuth 2.0 grant type for browser-based applications, commonly recommended now is the PKCE flow.
But this isn't an npm issue, so shouldn't be here on the npm RFCs discussion board. You can likely find more answers on stackoverflow.