netlify-labs / react-netlify-identity

a tiny (4kb) React hook for using Netlify Identity, no UI. SEEKING MAINTAINERS
https://netlify-gotrue-in-react.netlify.com/
156 stars 25 forks source link

Is it possible to use external OAuth provider? #3

Closed nelsonchen90 closed 5 years ago

nelsonchen90 commented 5 years ago

Does this React wrapper support external oauth providers like the official library?

swyxio commented 5 years ago

hey! do you mean https://github.com/netlify/gotrue-js supporting oauth providers? because i dont think it does. or what do you mean official library?

in general, for oauth providers that netlify doesn't support as a first class citizen, you'll have to use a serverless function: https://www.netlify.com/blog/2018/07/30/how-to-setup-serverless-oauth-flows-with-netlify-functions--intercom/

nelsonchen90 commented 5 years ago

@sw-yx Hi! thanks for the reply! I meant this https://github.com/netlify/netlify-identity-widget . it supports oauth providers like Google/github etc.

swyxio commented 5 years ago

ahh. yeah it is possible, i just havent coded it yet 😅 we will have to port over this bunch of code: https://github.com/netlify/netlify-identity-widget/blob/ece08ed2a3653adcad87cf3998277362e362da60/src/state/store.js#L99-L119

swyxio commented 5 years ago

cc @nelsonchen90 https://react-netlify-identity-widget.netlify.com/?#

nelsonchen90 commented 5 years ago

@sw-yx thanks for the update!