cryptomator / cryptomator/hub

Show notification when user session is expired

Open
#137 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
80
Forks
15
PR merge metrics
No merged PRs in 30d

Description

### Please agree to the following

- [X] I have searched [existing issues](https://github.com/cryptomator/hub/issues?q=) for duplicates
- [X] I agree to follow this project's [Code of Conduct](https://github.com/cryptomator/hub/blob/develop/.github/CODE_OF_CONDUCT.md)

### Summary

Show notification when user session is expired (and cannot be renewed).

### Motivation

When the accessToken is expired, we automatically refresh the token in
https://github.com/cryptomator/hub/blob/42527eb2dbf76dd5c3186566061e11e97ecdfeb7/frontend/src/common/auth.ts#L13

This might fail, if we reach the Max User Session duration:
![grafik](https://user-images.githubusercontent.com/9036915/188616055-be037f36-c8c1-4d72-a2ac-6ef03dd342a9.png)

Admittedly, in this example, it is very unlikeley to reach this. But that value should be reduced anyway. 😉
After the session end, Hub displays the FetchError component, but retrying would not yield any success. The user needs to reload the page or navigate somewhere to be prompted with the login page.

A notification would be nice, such that the user can save form data elsewhere and react to it.

### Considered Alternatives

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.