Skip to content

Commit

Permalink
Add missing “=” assignments in the session docs
Browse files Browse the repository at this point in the history
Fixes #52
  • Loading branch information
chasenlehara authored Feb 1, 2017
1 parent 72e8910 commit 0b19e4b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions _docs/session/session.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ Setting up the Feathers Client is a prerequisite for using this behavior. See t
var connect = require('can-connect');
var DefineMap = require('can-define/map/');

var feathersSessionBehavior require('can-connect-feathers/session');
var dataParse require('can-connect/data/parse/');
var construct require('can-connect/constructor/');
var constructStore require('can-connect/constructor/store/');
var constructCallbacksOnce require('can-connect/constructor/callbacks-once/');
var canMap require('can-connect/can/map/');
var canRef require('can-connect/can/ref/');
var dataCallbacks require('can-connect/data/callbacks/');
var feathersSessionBehavior = require('can-connect-feathers/session');
var dataParse = require('can-connect/data/parse/');
var construct = require('can-connect/constructor/');
var constructStore = require('can-connect/constructor/store/');
var constructCallbacksOnce = require('can-connect/constructor/callbacks-once/');
var canMap = require('can-connect/can/map/');
var canRef = require('can-connect/can/ref/');
var dataCallbacks = require('can-connect/data/callbacks/');
// Bring in your user model to setup the relation in your DefineMap.
var User = require('./user');

Expand Down Expand Up @@ -108,4 +108,4 @@ That's it! The `session` property in the above example will automatically popul

### Handling OAuth Logins

The `feathers-session` behavior is preconfigured to listen to `login` messages coming in over the [feathers-authentication-popups](https://github.com/feathersjs/feathers-authentication-popups) `authAgent`. When any message is received through the `authAgent`, its validity is checked. If it's a valid JWT token, a Session instance will be created automatically. This will both populate `Session.current` and dispatch a `created` event on the connected Session Map.
The `feathers-session` behavior is preconfigured to listen to `login` messages coming in over the [feathers-authentication-popups](https://github.com/feathersjs/feathers-authentication-popups) `authAgent`. When any message is received through the `authAgent`, its validity is checked. If it's a valid JWT token, a Session instance will be created automatically. This will both populate `Session.current` and dispatch a `created` event on the connected Session Map.

0 comments on commit 0b19e4b

Please sign in to comment.