cozy / cozy-client-js

Javascript library to write Cozy applications
https://docs.cozy.io/en/cozy-client-js/README/
MIT License
11 stars 12 forks source link

feat(intents): add an redirectFn parameter to redirect method #272

Closed drazik closed 6 years ago

drazik commented 6 years ago

This adds a redirectFn so we can pass a custom redirection function when we call cozy.client.intents.redirect.

This enables us to use an inapp browser and redirect the user using intents redirect on mobile apps, for example.

gregorylegarec commented 6 years ago

Thanks @drazik 👍

nono commented 6 years ago

I'm a bit late, but I'm not sure to see the value of adding a redirectFn paramater to redirect vs calling getRedirectionURL and doing whatever you want with the returned URL.