1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-13 23:20:05 +00:00

fix: while checking session extract username also

This commit is contained in:
Saad Jutt
2021-08-07 07:32:48 +05:00
parent f172ad66bc
commit fc1c93957c
3 changed files with 267 additions and 330 deletions

View File

@@ -175,7 +175,7 @@ describe('AuthManager', () => {
expect(response.isLoggedIn).toBeTruthy()
expect(mockedAxios.get).toHaveBeenNthCalledWith(
1,
`http://test-server.com/identities`,
`http://test-server.com/identities/users/@currentUser`,
{
withCredentials: true,
responseType: 'text',