Skip to content

Commit

Permalink
chore(jwt): lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Oct 5, 2024
1 parent 24be3f9 commit 90d8b5c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/jwt/src/lib/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import {
ScopeEnum,
} from '@midwayjs/core'
import { MConfig } from '@mwcp/share'
// import {
// decode,
// sign,
// verify,
// VerifyOptions,
// } from 'jsonwebtoken'
import { JsonObject } from '@waiting/shared-types'
import JWT from 'jsonwebtoken'
import type {
Expand Down Expand Up @@ -156,7 +150,7 @@ export class JwtComponent {
ret.push(decoded)
return true
}
catch (ex) {
catch {
const ss = typeof secret === 'string' ? secret : secret.toString()
const start = ss.slice(0, 2)
let end = ss
Expand Down

0 comments on commit 90d8b5c

Please sign in to comment.