Skip to content

Instantly share code, notes, and snippets.

View jermsam's full-sized avatar
🎯
Focusing

Samson Ssali jermsam

🎯
Focusing
View GitHub Profile
@jermsam
jermsam / App.js
Last active May 10, 2018 12:21
Cross-domain issue For the case where you are using feathers-reduxify-authentication and feathers-authentication-management
// CLIENT
// src/App.js
// other imports
import VerifySocialPage from './pages/VerifySocialPage'
function App () {
return (
<Switch>
// .... other routes
<Route path="/verify-social" exact component={VerifySocialPage} />
@jermsam
jermsam / SigninPage.js
Created May 9, 2018 11:59
login state stuck at SERVICES_AUTHENTICATION_AUTHENTICATE_PENDING when fed with correct credentials yet validates ok when fed invalid credentials
import React,{Component} from 'react'
import PropTypes from 'prop-types'
import { compose } from 'recompose'
import {connect} from 'react-redux'
import {
withRouter,
} from 'react-router-dom';
import {
Divider, Message,Container
@jermsam
jermsam / authentication.js
Created April 20, 2018 18:29
Feathers Social login
const authentication = require('@feathersjs/authentication');
const jwt = require('@feathersjs/authentication-jwt');
const local = require('@feathersjs/authentication-local');
const oauth2 = require('@feathersjs/authentication-oauth2');
const GithubStrategy = require('passport-github');
module.exports = function (app) {
const config = app.get('authentication');
// Set up authentication with the secret