You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I was testing this package to add the 'Log in with LinkedIn' functionality in one of my apps, in this app, I have the front end and the backend in different domains, and when the login is completed I need to redirect the user to the backend and then receive the token and user details in the front.
Right now that seems possible with the package but I need to use the "LinkedInCallback" provided and that is forcing me to include a new page in my front end, and then send the code to the backend.
Would it be possible to "listen" from the backend URI redirection or response? Instead of having a new page to handle it? Or am I missing something here...
I think the package "react-google-login" works like that.
And to be clear this is what I want/expect:
Use the LinkedIn button providing an external URI, not in the same domain where the front end is
When the user clicks it, a popUp window will open requesting LinkedIn credentials and permissions
When the user completes the authentication process, Linkedin will redirect and send the info to the external URI provided
In the backend, I'll do all the logic that I need and I'll redirect or return a 200 code with the JSON response
The package should receive the 200 or the redirection without the need for a new page and return the info in the "onSuccess" callback and close the popUp window
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! I was testing this package to add the 'Log in with LinkedIn' functionality in one of my apps, in this app, I have the front end and the backend in different domains, and when the login is completed I need to redirect the user to the backend and then receive the token and user details in the front.
Right now that seems possible with the package but I need to use the "LinkedInCallback" provided and that is forcing me to include a new page in my front end, and then send the code to the backend.
Would it be possible to "listen" from the backend URI redirection or response? Instead of having a new page to handle it? Or am I missing something here...
I think the package "react-google-login" works like that.
And to be clear this is what I want/expect:
Beta Was this translation helpful? Give feedback.
All reactions