This commit is contained in:
parent
6cf6286fb8
commit
8285e58337
@ -4,4 +4,4 @@ import create_auth_handler from './AuthHandler';
|
||||
import blacklist from './Blacklist';
|
||||
import authority from './Authority';
|
||||
|
||||
export default { create_gateway, create_auth_handler, blacklist, authority };
|
||||
export { create_gateway, create_auth_handler, blacklist, authority };
|
||||
|
@ -9,8 +9,7 @@ import http, { IncomingMessage, ServerResponse } from 'http';
|
||||
import { to_b64 } from '@sapphirecode/encoding-helper';
|
||||
import auth from '../../lib/Authority';
|
||||
import { get, modify_signature, Response } from '../Helper';
|
||||
import create_auth_handler from '../../lib/AuthHandler';
|
||||
|
||||
import { create_auth_handler } from '../../lib/index';
|
||||
|
||||
const expires_seconds = 600;
|
||||
const refresh_expires_seconds = 3600;
|
||||
|
@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
import http from 'http';
|
||||
import gateway from '../../lib/Gateway';
|
||||
import { create_gateway } from '../../lib/index';
|
||||
import authority from '../../lib/Authority';
|
||||
import blacklist from '../../lib/Blacklist';
|
||||
import { get } from '../Helper';
|
||||
@ -21,7 +21,7 @@ describe ('gateway', () => {
|
||||
jasmine.clock ()
|
||||
.mockDate (new Date);
|
||||
|
||||
const g = gateway ({
|
||||
const g = create_gateway ({
|
||||
redirect_url: 'http://localhost/auth',
|
||||
cookie_name: 'cookie_jar'
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user