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') {
|
if (typeof options.secret === 'string') {
|
||||||
keySecret = options.secret
|
keySecret = options.secret
|
||||||
} else {
|
} else {
|
||||||
keySecret = await options.secret(() => {})
|
keySecret = await options.secret({ header: { alg: 'RS256' }, payload: '' })
|
||||||
}
|
}
|
||||||
app.post('/login', (_req, res) => {
|
app.post('/login', (_req, res) => {
|
||||||
const profile = {
|
const profile = {
|
||||||
|
Reference in New Issue
Block a user