-
-
Save Mattchewone/d62b3f9c47309051b9466de5d52626d1 to your computer and use it in GitHub Desktop.
Custom feathers authentication can-connect setup
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
import connect from 'can-connect' | |
import dataParse from 'can-connect/data/parse/' | |
import construct from 'can-connect/constructor/' | |
import constructStore from 'can-connect/constructor/store/' | |
import constructCallbacksOnce from 'can-connect/constructor/callbacks-once/' | |
import canMap from 'can-connect/can/map/' | |
import canRef from 'can-connect/can/ref/' | |
import dataCallbacks from 'can-connect/data/callbacks/' | |
import realTime from 'can-connect/real-time/real-time' | |
import feathersSessionBehavior from 'can-connect-feathers/session' | |
const sessionConnection = function (options) { | |
return connect([ | |
feathersSessionBehavior, | |
dataParse, | |
canMap, | |
canRef, | |
construct, | |
constructStore, | |
constructCallbacksOnce, | |
realTime, | |
dataCallbacks | |
], options) | |
} | |
export default sessionConnection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment