Skip to content

Commit 1521c5b

Browse files
author
sw-yx
committed
readme
1 parent 43dfa8b commit 1521c5b

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Two demos:
1717

1818
**Lowest level JS Library**: If you want to use the official Javascript bindings to GoTrue, Netlify's underlying Identity service written in Go, use https://github.com/netlify/gotrue-js
1919

20-
**React bindings**: If you want a thin wrapper over Gotrue-js for React, `react-netlify-identity` is a "headless" library, meaning there is no UI exported and you will write your own UI to work with the authentication. https://github.com/sw-yx/react-netlify-identity
20+
**React bindings**: If you want a thin wrapper over Gotrue-js for React, `react-netlify-identity` is a "headless" library, meaning there is no UI exported and you will write your own UI to work with the authentication. https://github.com/sw-yx/react-netlify-identity. If you want a drop-in UI, there is yet another library that wraps `react-netlify-identity`: https://github.com/sw-yx/react-netlify-identity-widget
2121

2222
**High level overlay**: If you want a "widget" overlay that gives you a nice UI out of the box, with a somewhat larger bundle, check https://github.com/netlify/netlify-identity-widget
2323

example/src/App.tsx

-5
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ function Login({ }: MaybePathProps) {
9595
Google
9696
</button>
9797
)}
98-
{setting && setting.external.facebook && (
99-
<button className="btn" style={{ background: "darkblue" }} onClick={() => loginProvider("facebook")}>
100-
Facebook
101-
</button>
102-
)}
10398
</form>
10499
)
105100
}

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function useNetlifyIdentity(domain: string, onAuthChange: authChangeParam
4444
// make sure the Registration preferences under Identity settings in your Netlify dashboard are set to Open.
4545
// https://react-netlify-identity.netlify.com/login#access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NTY0ODY3MjEsInN1YiI6ImNiZjY5MTZlLTNlZGYtNGFkNS1iOTYzLTQ4ZTY2NDcyMDkxNyIsImVtYWlsIjoic2hhd250aGUxQGdtYWlsLmNvbSIsImFwcF9tZXRhZGF0YSI6eyJwcm92aWRlciI6ImdpdGh1YiJ9LCJ1c2VyX21ldGFkYXRhIjp7ImF2YXRhcl91cmwiOiJodHRwczovL2F2YXRhcnMxLmdpdGh1YnVzZXJjb250ZW50LmNvbS91LzY3NjQ5NTc_dj00IiwiZnVsbF9uYW1lIjoic3d5eCJ9fQ.E8RrnuCcqq-mLi1_Q5WHJ-9THIdQ3ha1mePBKGhudM0&expires_in=3600&refresh_token=OyA_EdRc7WOIVhY7RiRw5w&token_type=bearer
4646
/******* external oauth */
47-
type Provider = "bitbucket" | "facebook" | "github" | "gitlab" | "google"
47+
type Provider = "bitbucket" | "github" | "gitlab" | "google"
4848

4949
const loginProvider = (provider: Provider) => {
5050
const url = goTrueInstance.loginExternalUrl(provider)

0 commit comments

Comments
 (0)