Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Fix flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
ganemone authored and fusion-bot[bot] committed Feb 12, 2018
1 parent 12cd9f9 commit e1cfa85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/__tests__/test.node.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
Expand Down
9 changes: 7 additions & 2 deletions src/jwt-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import get from 'just-safe-get';
import set from 'just-safe-set';

import {createPlugin, memoize} from 'fusion-core';
import type {Context} from 'fusion-core';
import type {Context, FusionPlugin} from 'fusion-core';

import {
SessionSecretToken,
Expand Down Expand Up @@ -67,7 +67,12 @@ class JWTSession {
}

export type SessionService = {from: (ctx: Context) => JWTSession};
const p =
type SessionDeps = {
secret: typeof SessionSecretToken,
cookieName: typeof SessionCookieNameToken,
expires: typeof SessionCookieExpiresToken.optional,
};
const p: FusionPlugin<SessionDeps, SessionService> =
// $FlowFixMe
__NODE__ &&
createPlugin({
Expand Down

0 comments on commit e1cfa85

Please sign in to comment.