2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

test: fix typings in fixture keySecret

This commit is contained in:
divlo 2021-01-28 19:12:46 +01:00
parent 959652b3d3
commit af7ff4e8d9

View File

@ -31,7 +31,7 @@ export const fixtureStart = async (
if (typeof options.secret === 'string') {
keySecret = options.secret
} else {
keySecret = await options.secret(() => {})
keySecret = await options.secret({ header: { alg: 'RS256' }, payload: '' })
}
app.post('/login', (_req, res) => {
const profile = {