Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Redirect to login when PWA/Web-App is opened and cookie is expired #2884

Closed
@ntimo

Description

@ntimo

Current Situation

Currently when a user opens a PWA e.g. code-server a message appears {"message":"Cookie \"session_token\" or query parameter must be provided."} stating that the cookie is expired. The user then has to open a new chrome window open the coder url login and refresh the pwa. This is not ideal of a workflow.

Desired Solution

The PWA page should just redirect to the login so that the user can authenticate and then load the application e.g. code-server.

How to reproduce

  1. Login to Code
  2. Start a workspace with code-server
  3. Install code-server as chrome pwa
  4. Wait for auth cookie to expire or delete it
  5. Open the PWA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions