@alexdevco/passport 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
- import { JWTStrategy } from '../constants';
2
1
  export interface IPassportOptions {
3
2
  secretKey: string;
4
3
  publicKey?: string;
5
- strategy: typeof JWTStrategy;
4
+ strategy: string;
6
5
  }
@@ -25,7 +25,7 @@ let PassportService = class PassportService {
25
25
  this.options = options;
26
26
  this.SECRET_KEY = options.secretKey;
27
27
  this.PUBLIC_KEY = options.publicKey;
28
- this.strategy = (0, utils_1.getStrategy)(String(options.strategy), this.SECRET_KEY, this.PUBLIC_KEY);
28
+ this.strategy = (0, utils_1.getStrategy)(options.strategy, this.SECRET_KEY, this.PUBLIC_KEY);
29
29
  }
30
30
  generate(payload) {
31
31
  return this.strategy.generate(payload);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexdevco/passport",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Lightweight AlexDevCo authentication library",
5
5
  "homepage": "https://github.com/alexdevcoru/passport#readme",
6
6
  "bugs": {