fix: auth strategy exp (#6945)
## Description Ensures that exp and auth strategy are available from the `me` and `refresh` operations as well as passed through the `Auth` provider. Same as #6943 - [x] I have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -134,6 +134,8 @@ describe('Auth', () => {
|
||||
|
||||
const data = await response.json()
|
||||
|
||||
expect(data.strategy).toBeDefined()
|
||||
expect(typeof data.exp).toBe('number')
|
||||
expect(response.status).toBe(200)
|
||||
expect(data.user.email).toBeDefined()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user