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:
parent
959652b3d3
commit
af7ff4e8d9
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user