fix query string name
Signed-off-by: headphonejames <generalfuzz@gmail.com>
This commit is contained in:
@@ -138,7 +138,7 @@ describe('DefaultAuthConnector', () => {
|
||||
|
||||
expect(popupSpy).toHaveBeenCalledTimes(1);
|
||||
expect(popupSpy.mock.calls[0][0]).toMatchObject({
|
||||
url: 'http://my-host/api/auth/my-provider/start?scope=a%20b&origin=http%3A%2F%2Flocalhost&authFlow=popup&env=production',
|
||||
url: 'http://my-host/api/auth/my-provider/start?scope=a%20b&origin=http%3A%2F%2Flocalhost&flow=popup&env=production',
|
||||
});
|
||||
|
||||
await expect(sessionPromise).resolves.toEqual({
|
||||
@@ -186,7 +186,7 @@ describe('DefaultAuthConnector', () => {
|
||||
|
||||
expect(popupSpy).toHaveBeenCalledTimes(1);
|
||||
expect(popupSpy.mock.calls[0][0]).toMatchObject({
|
||||
url: 'http://my-host/api/auth/my-provider/start?scope=-ab-&origin=http%3A%2F%2Flocalhost&authFlow=popup&env=production',
|
||||
url: 'http://my-host/api/auth/my-provider/start?scope=-ab-&origin=http%3A%2F%2Flocalhost&flow=popup&env=production',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -173,7 +173,7 @@ export class DefaultAuthConnector<AuthSession>
|
||||
const popupUrl = await this.buildUrl('/start', {
|
||||
scope,
|
||||
origin: window.location.origin,
|
||||
authFlow: 'popup',
|
||||
flow: 'popup',
|
||||
});
|
||||
|
||||
const payload = await showLoginPopup({
|
||||
|
||||
Reference in New Issue
Block a user