Params through social connection

Howdy!

Inside of the hosted page I have this triggered when a user clicks a social login button:

    webAuth.authorize({
      connection: connection,
      flow: flow
    }, function (err) {
        if (err) {
            displayError(err);
        }
    });

Where flow symbolizes if the user is logging in or signing up. This variable can change because a user can start in the sign up page where mode=SignUp but click on log in instead and the hosted page will render the login inputs, and mode can’t change so this toggle is being tracked with flow.
This param is needed inside of Rules to handle various use cases, but in the case when the connection is social (facebook, google-oauth2, etc) this param does not persist to the rule. Is there any way to pass in options when hitting authorize to a social connection from the hosted login page?

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?

Yep I did figure it out! login_hint is accepted by all providers so we are using that as a way to pass around info we need that the context itself doesn’t hold onto anymore.

1 Like

Thanks a lot for sharing it with the rest of community!