diff --git a/package.json b/package.json index 06df7745..5f6b23ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "platformsh-client", - "version": "0.1.248", + "version": "0.1.249-beta.1", "description": "Isomorphic Javascript library for accessing the Platform.sh API", "browser": "lib/client/platform-api.js", "main": "lib/server/platform-api.js", diff --git a/src/authentication/connector.ts b/src/authentication/connector.ts index f2269e09..5457c05e 100644 --- a/src/authentication/connector.ts +++ b/src/authentication/connector.ts @@ -301,6 +301,15 @@ const logInWithRedirect = async ( if (attempt < 1) { attempt++; return false; + } else { + const { prompt, response_mode, ...params } = { + ...req + }; + + window.location.href = encodeURL(auth.authorization, { + ...params + }); + return; } clearInterval(listener);