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
/** | |
* Special Storage-Implementation that uses sessionStorage (like the default of the | |
* OAuth-library) but also sets a marker in localStorage so that other Browser-Tabs | |
* get notified when the user on this Tab logs out. | |
*/ | |
export class CrossTabStorage extends OAuthStorage { | |
readonly MARKER_KEY = "LOGGED_IN"; | |
constructor() { |
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
'use strict'; | |
var should = require('should'); | |
var app = require('../../app'); | |
var request = require('supertest')(app); | |
describe('GET /api/incidents', function() { | |
it('should require authorization', function(done) { | |
request |