kinode-dao / kinode

Kinode OS runtime
https://kinode.org
Apache License 2.0
35 stars 13 forks source link

add redirect param to login page for loads where user already has cookie #593

Closed dr-frmr closed 2 weeks ago

dr-frmr commented 2 weeks ago

Problem

Hosting service needs to usher user through login page when booting straight into an app

Solution

Add function for login page to allow redirect parameter in url

Testing

1. Boot a node, try navigating straight to app
2. Forced to log in
3. Instead, POST request to /login?redirect=x with credentials and then navigate straight through