Skip to content

Commit

Permalink
fix(chore): export mandatory strategies from package (#215)
Browse files Browse the repository at this point in the history
remove bearer and client password passport strategies type declarations export
and export them from root

GH-214
  • Loading branch information
sf-sahil-jassal authored Feb 1, 2024
1 parent b4a466c commit fbd16ad
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
"passport-azure-ad": [
"./dist/strategies/passport/passport-azure-ad/index.d.ts"
],
"passport-bearer": [
"./dist/strategies/passport/passport-bearer/index.d.ts"
],
"passport-client-password": [
"./dist/strategies/passport/passport-client-password/index.d.ts"
],
"passport-cognito-oauth2": [
"./dist/strategies/passport/passport-cognito-oauth2/index.d.ts"
],
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './component';
export * from './types';
export * from './decorators';
export * from './strategies';
export * from './keys';
export * from './strategy-adapter';
export * from './strategy-name.enum';
Expand Down
1 change: 0 additions & 1 deletion src/strategies/passport/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './passport-otp';
export * from './passport-bearer';
export * from './passport-client-password';
2 changes: 1 addition & 1 deletion src/strategies/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import * as FacebookStrategy from 'passport-facebook';
import * as GoogleStrategy from 'passport-google-oauth20';
import * as InstagramStrategy from 'passport-instagram';
import {Cognito, IAuthClient, IAuthSecureClient, IAuthUser} from '../../types';
import {Otp} from '../passport';
import {Keycloak} from './keycloak.types';
import {Otp} from '../passport/passport-otp';

export type VerifyCallback = (
err?: string | Error | null,
Expand Down
2 changes: 1 addition & 1 deletion src/strategies/user-auth-strategy.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {AuthenticationBindings} from '../keys';
import {STRATEGY} from '../strategy-name.enum';
import {AuthenticationMetadata, IAuthUser} from '../types';
import {Strategies} from './keys';
import {Otp} from './passport';
import {LocalPasswordStrategyFactory} from './passport/passport-local';
import {Otp} from './passport/passport-otp';
import {Oauth2ResourceOwnerPassword} from './passport/passport-resource-owner-password';
import {Cognito, Keycloak, VerifyFunction} from './types';

Expand Down

0 comments on commit fbd16ad

Please sign in to comment.