@alexdevco/passport 1.0.12 → 1.0.13

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.
@@ -21,4 +21,10 @@ export declare class PassportService {
21
21
  * @returns Результат верификации токена
22
22
  */
23
23
  verify(token: string): IVerifyResult;
24
+ /**
25
+ * Проверяет refresh токен и возвращает результат верификации
26
+ * @param token - refresh токен для проверки
27
+ * @returns Результат верификации токена
28
+ */
29
+ verifyRefresh(token: string): IVerifyResult;
24
30
  }
@@ -47,6 +47,14 @@ let PassportService = class PassportService {
47
47
  verify(token) {
48
48
  return this.strategy.verify(token);
49
49
  }
50
+ /**
51
+ * Проверяет refresh токен и возвращает результат верификации
52
+ * @param token - refresh токен для проверки
53
+ * @returns Результат верификации токена
54
+ */
55
+ verifyRefresh(token) {
56
+ return this.strategy.verifyRefresh(token);
57
+ }
50
58
  };
51
59
  exports.PassportService = PassportService;
52
60
  exports.PassportService = PassportService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexdevco/passport",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Lightweight AlexDevCo authentication library",
5
5
  "homepage": "https://github.com/alexdevcoru/passport#readme",
6
6
  "bugs": {