Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
borisyankov committed Jul 24, 2018
1 parent 940a4bb commit 4bebdf5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/start/authentications.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
import type { AuthenticationMethods } from '../types';
import { IconPrivate, IconGoogle, IconGitHub, IconTerminal } from '../common/Icons';

const authentications = [
type AuthenticationMethodDetails = {
method: string,
name: string,
Icon: Object,
handler: string,
};

const authentications: AuthenticationMethodDetails[] = [
{
method: 'dev',
name: 'dev account',
Expand Down Expand Up @@ -41,7 +48,9 @@ const authentications = [
},
];

export const activeAuthentications = (authenticationMethods: AuthenticationMethods) =>
export const activeAuthentications: AuthenticationMethodDetails[] = (
authenticationMethods: AuthenticationMethods,
) =>
authentications.filter(
auth =>
authenticationMethods[auth.method]
Expand Down

0 comments on commit 4bebdf5

Please sign in to comment.