Improving type safety
This commit is contained in:
parent
37e4f35e33
commit
8cf563ed92
12 changed files with 26 additions and 23 deletions
|
@ -4,8 +4,8 @@ import type { IdToken, RawToken } from "./createTokenDB"
|
|||
import sendError, { API } from "./sendError"
|
||||
import jwt from "jsonwebtoken"
|
||||
|
||||
async function checkTokenIsValid(
|
||||
context: API,
|
||||
async function checkTokenIsValid<T>(
|
||||
context: API<T>,
|
||||
rawToken: RawToken,
|
||||
next: (token: IdToken) => void
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue