Stop Gigya log in from directing back to the log in page

We are using Gigya as our log in service on our SAP Commerce site.

This is the code that is executed when a user clicks the log in button:

ssoLogin(language: string): void {
gigya.sso.login({
authFlow: “redirect”,
context: {
appName: “eCom”,
lang: language
},
useChildContext: true
});
}

We have noticed that when the user logs in they are first directed back to the log in page and then to the actual store they are logging in to.

How can we make it so that they’re not directed to the log in page but are directed straight to the store?

We have tried changing authFlow from “redirect” to “popup” and we have also tried passing a redirect url in the method call, but neither option stopped gigya from directing the user to the log in page after logging in.