Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added standardjs and multitab logout
- Loading branch information
1 parent
47c3cb8
commit 49df414
Showing
19 changed files
with
299 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
.next | ||
config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"AUTH0_CLIENT_ID": "", | ||
"AUTH0_CLIENT_DOMAIN": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* eslint react/prop-types: 0 */ | ||
import React from 'react'; | ||
import React from 'react' | ||
|
||
import NotAuthorized from '../components/NotAuthorized'; | ||
import defaultPage from './defaultPage'; | ||
import NotAuthorized from '../components/NotAuthorized' | ||
import defaultPage from './defaultPage' | ||
|
||
const securePagehoc = Page => props => (!props.isAuthenticated ? <NotAuthorized /> : <Page {...props} />); | ||
const securePagehoc = Page => props => (!props.isAuthenticated ? <NotAuthorized /> : <Page {...props} />) | ||
|
||
export default Page => defaultPage(securePagehoc(Page)); | ||
export default Page => defaultPage(securePagehoc(Page)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import React from 'react'; | ||
import React from 'react' | ||
|
||
import { show } from '../../utils/lock'; | ||
import { show } from '../../utils/lock' | ||
|
||
export default class SignIn extends React.Component { | ||
componentDidMount() { | ||
show(); | ||
componentDidMount () { | ||
show() | ||
} | ||
render() { | ||
return null; | ||
render () { | ||
return null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import React from 'react'; | ||
import React from 'react' | ||
|
||
import { unsetToken } from '../../utils/auth'; | ||
import { logout } from '../../utils/lock'; | ||
import { unsetToken } from '../../utils/auth' | ||
import { logout } from '../../utils/lock' | ||
|
||
export default class SignOff extends React.Component { | ||
componentDidMount() { | ||
unsetToken(); | ||
logout(); | ||
componentDidMount () { | ||
unsetToken() | ||
logout() | ||
} | ||
render() { | ||
return null; | ||
render () { | ||
return null | ||
} | ||
} |
Oops, something went wrong.