Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 1x 5x 5x 5x 5x | 'use strict'; import {IJWTVerifyOptions} from './IJWTVerifyOptions'; export class JWTVerifyOptionsParser { constructor() { throw new Error('JWTVerifyOptionsParser is an static class.'); } // Parses IJWTVerifyOptions to jwt options public static parse(options: IJWTVerifyOptions): any { let opts: any = {}; Eif (options.enableExpiration !== undefined) { opts.ignoreExpiration = !options.enableExpiration; } return opts; } } |