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:
James Mikrut
2024-06-26 14:42:20 -04:00
committed by GitHub
parent ed73dedd14
commit 5ffc5a1248
7 changed files with 95 additions and 71 deletions

View File

@@ -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()
})