Open Velua opened 1 month ago
When handling valid redirect urls, we need to support either a full URL or simply a path on the app.
&redirect=/invite-response -> http://invitingApp.psibase.127.0.0.1.sslip.io:8080/invite-response
&redirect=/invite-response
&redirect=https://api.monstereos.com/invite-response -> https://api.monstereos.com/invite-response
&redirect=https://api.monstereos.com/invite-response
If path array is empty, all paths are wildcarded. This behavior does not apply for full urls.
When handling valid redirect urls, we need to support either a full URL or simply a path on the app.
Examples
Path only
&redirect=/invite-response
-> http://invitingApp.psibase.127.0.0.1.sslip.io:8080/invite-responseFull domain
&redirect=https://api.monstereos.com/invite-response
-> https://api.monstereos.com/invite-responseIf path array is empty, all paths are wildcarded. This behavior does not apply for full urls.