Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fix(jwt): minor type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Jun 21, 2023
1 parent d457f1d commit b705044
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
import {
create,
getNumericDate,
Payload as JwtPayload,
verify as _verify,
VerifyOptions,
} from 'https://deno.land/x/djwt@v2.8/mod.ts'
Expand Down Expand Up @@ -77,7 +78,7 @@ export async function verify<T extends Record<string, unknown> = Payload>(
try {
const key = typeof secret === 'string' ? await importKey(secret) : secret

return await _verify(token, key, options) as Payload & T
return await _verify(token, key, options) as JwtPayload & T
} catch (_err) {
return
}
Expand Down

0 comments on commit b705044

Please sign in to comment.