Identity/Verified Email Protocol/Session API: Difference between revisions

Line 104: Line 104:
     // Our bear is masquerading as two bears.
     // Our bear is masquerading as two bears.
     navigator.id.sessions = [{
     navigator.id.sessions = [{
         id: 'poohbear@ashdownforest.gov.uk',
         email: 'poohbear@ashdownforest.gov.uk',
         status: 'active'
         status: 'active'
     }, {
     }, {
         id: 'yogibear@jellystone.nps.gov',
         email: 'yogibear@jellystone.nps.gov',
     }];
     }];


If 0 sessions are currently active, the browser status button will read "login".  When the user clicks the button, they will be presented a the doorhanger to select a session.  When the user selects a session, the "login" event will be triggered with the selected id given as the "id" field of the event object.
If 0 sessions are currently active, the browser status button will read "login".  When the user clicks the button, they will be presented a the doorhanger to select a session.  When the user selects a session, the "login" event will be triggered with the selected id given as the "id" field of the event object.


===Changing Sessions===
===Changing Sessions===
Confirmed users
134

edits