igolus
March 12, 2023, 11:18pm
1
Hello I did have a look in the previous threads without being able to figure out out to solve my issue
On react side I am doing
<Button
id=“qsLoginBtn”
color=“primary”
className=“btn-margin”
onClick={() => loginWithRedirect({
screen_hint: ‘signup’,
extraParam: ‘foo’
})}
Log in
Then I created a post login action
exports.onExecutePostLogin = async (event, api) => {
//if (event.user.email && event.user.email.endsWith(“@gmail.com ”) && event.client.name === “My SPA”) {
//api.access.deny ();
api.access.deny(JSON.stringify(event));
//}
};
As expected the login fails but the display does not show screen_hint keys !!
What am i doing wrong ?
tyf
March 13, 2023, 9:35pm
2
Hey there @igolus welcome to the community!
It’s not entirely clear to me what your desired use case is here - Are you able to expand a bit on the exact outcome you are looking to achieve?
Thanks!
igolus
March 20, 2023, 7:52am
4
Hello,
I just expect that the options I passed to loginWithRedirect function are present on the server action side. I need to pass additional information from react side and consume it on action side
I created this test to verify that the option are well taken into consiretation displaying the deny reason in json format and then I can check if my parameters are passed inside event object.
As you can see I cannot find the “screen_hint” keys so the there is no way to consume the data on server side for further process.
I would have expect to have the data passed to loginWithRedirect displayed on the browser !!
Hope it clarify…
1 Like
tyf
Closed
April 4, 2023, 7:52am
5
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.