1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const jwt_constants_1 = require("./jwt.constants");
|
4 | function createJwtOptionsProvider(options) {
|
5 | return {
|
6 | provide: jwt_constants_1.JWT_OPTION,
|
7 | useValue: options,
|
8 | };
|
9 | }
|
10 | exports.createJwtOptionsProvider = createJwtOptionsProvider;
|
11 | function createJwtAsyncOptionsProvider(options) {
|
12 | return {
|
13 | provide: jwt_constants_1.JWT_OPTION,
|
14 | useFactory: options.useFactory,
|
15 | inject: options.inject || [],
|
16 | };
|
17 | }
|
18 | exports.createJwtAsyncOptionsProvider = createJwtAsyncOptionsProvider;
|
19 |
|
\ | No newline at end of file |