Fix jwt-token
This commit is contained in:
@@ -37,7 +37,7 @@ describe('Auth Routes', () => {
|
|||||||
|
|
||||||
const response = await request(app)
|
const response = await request(app)
|
||||||
.post('/auth/login')
|
.post('/auth/login')
|
||||||
.set('x-tenant-id', 'test-tenant') // Set tenant via header for test
|
.set('Host', 'test-tenant.example.com') // Use fake domain for subdomain extraction
|
||||||
.send({
|
.send({
|
||||||
username: 'testuser',
|
username: 'testuser',
|
||||||
password: 'password'
|
password: 'password'
|
||||||
|
|||||||
Reference in New Issue
Block a user