strongloop / loopback-component-passport

LoopBack passport integration to support third party logins and account linking
Other
139 stars 227 forks source link

url param response instead of json #193

Closed scottmcdonnell closed 7 years ago

scottmcdonnell commented 7 years ago

Currently my react app is opening the api passport auth in a pop up and listening for the json response (provider has "json": true) .
This works fine but the json response is visible before the popup closes.

Is there a way instead to have the access_token and userId instead set as URL params so they can be read without being visible?

chernomord commented 7 years ago

I was searching for the answer too and looks like found a solution in the source code of the component.

In the provider configuration you could add field "session":false, it would tell the component to add access-token and user-id parameters to the success callback URL

Hope it will help

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 7 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.