Initial Auth integration

This commit is contained in:
Barry Low committed 2018-10-11 14:53:58 -07:00
1 parent 27c32184b2
commit 401fb88e0e
8 files changed
+53 -158

No files matched your search

+8 -1
View File
@@ -19,7 +19,7 @@ export const auth = new Auth(
result => console.log('auth result', result),
client
)
console.log(Header)
export const MasterApp = () => (
<BrowserRouter>
<ApolloProvider client={client}>
@@ -29,6 +29,13 @@ export const MasterApp = () => (
<Header auth={auth} />
<Switch>
<Route exact path='/' component={Home} />
<Route
path='/callback'
render={props => {
auth.handleAuthentication(props)
return <Callback {...props} />
}}
/>
<Route
exact
path='/teams'