Closed koistya closed 3 years ago
api
api/auth/facebook.ts
req.signIn()
api/auth/response.hbs
web
LoginDialog
useAuth()
useLoginDialog()
useSignOut()
useErrors
import * as React from "react"; import { useLoginDialog } from "../hooks"; export function Example(): JSX.Element { const loginDialog = useLoginDialog(); return ( <div> <button onClick={loginDialog.show}>Log In</button> </div> ); }
No Redux required! 👍🏻
api
: Add Facebook OAuth 2.0 authentication middleware (api/auth/facebook.ts
)api
: Improvereq.signIn()
function to be used with the updated OAuth 2.0 authentication flowapi
: Update OAuth 2.0 response HTML to be compatible with the modal login window (api/auth/response.hbs
)web
: AddLoginDialog
that shows Google / Facebook login optionsweb
: RemoveuseAuth()
React hook in favor ofuseLoginDialog()
,useSignOut()
web
: Small improvement touseErrors
React hookHow to open a login (modal) dialog?
No Redux required! 👍🏻