What's the best approach around mocking/generation a Cognito token in tests?
I have a helper function that sets the Authorization header:
const response = await request(service)
.post('/graphql')
.send({ query, variables })
.set('Authorization', `Bearer ${token}`)
It seems like I need to generate the token myself but I'm not sure how to or if I even can do so.