Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication #1

Closed
charliewilco opened this issue Jul 19, 2016 · 2 comments
Closed

Authentication #1

charliewilco opened this issue Jul 19, 2016 · 2 comments
Milestone

Comments

@charliewilco
Copy link
Owner

Basic authentication using firebase and torii

simple login email & password

@charliewilco charliewilco modified the milestone: Beta Jul 19, 2016
@charliewilco
Copy link
Owner Author

Ended up using Hapi and JWT.

The client side should use a isAuthed() HOC
should render the component or redirect them back to the home view b

const isAuthed = ({ component: Xcm  }) => {
   return class extends React.Component {
// componentWillMount
// check the cookies for token validity
// INVALID: return back to the Home unauthed
// VALID: return the component
}
} 

@charliewilco
Copy link
Owner Author

Service should only return posts with specific user id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant