Skip to content

Commit fbd16ad

Browse files
fix(chore): export mandatory strategies from package (#215)
remove bearer and client password passport strategies type declarations export and export them from root GH-214
1 parent b4a466c commit fbd16ad

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@
6565
"passport-azure-ad": [
6666
"./dist/strategies/passport/passport-azure-ad/index.d.ts"
6767
],
68-
"passport-bearer": [
69-
"./dist/strategies/passport/passport-bearer/index.d.ts"
70-
],
71-
"passport-client-password": [
72-
"./dist/strategies/passport/passport-client-password/index.d.ts"
73-
],
7468
"passport-cognito-oauth2": [
7569
"./dist/strategies/passport/passport-cognito-oauth2/index.d.ts"
7670
],

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './component';
22
export * from './types';
33
export * from './decorators';
4+
export * from './strategies';
45
export * from './keys';
56
export * from './strategy-adapter';
67
export * from './strategy-name.enum';

src/strategies/passport/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
export * from './passport-otp';
21
export * from './passport-bearer';
32
export * from './passport-client-password';

src/strategies/types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import * as FacebookStrategy from 'passport-facebook';
99
import * as GoogleStrategy from 'passport-google-oauth20';
1010
import * as InstagramStrategy from 'passport-instagram';
1111
import {Cognito, IAuthClient, IAuthSecureClient, IAuthUser} from '../../types';
12-
import {Otp} from '../passport';
1312
import {Keycloak} from './keycloak.types';
13+
import {Otp} from '../passport/passport-otp';
1414

1515
export type VerifyCallback = (
1616
err?: string | Error | null,

src/strategies/user-auth-strategy.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import {AuthenticationBindings} from '../keys';
1313
import {STRATEGY} from '../strategy-name.enum';
1414
import {AuthenticationMetadata, IAuthUser} from '../types';
1515
import {Strategies} from './keys';
16-
import {Otp} from './passport';
1716
import {LocalPasswordStrategyFactory} from './passport/passport-local';
17+
import {Otp} from './passport/passport-otp';
1818
import {Oauth2ResourceOwnerPassword} from './passport/passport-resource-owner-password';
1919
import {Cognito, Keycloak, VerifyFunction} from './types';
2020

0 commit comments

Comments
 (0)