AppFlowy-IO / AppFlowy-IO/AppFlowy

[Bug] Appimage Login

Đang mở
#6,601 7 bình luận 1 reaction 1 người được giao Được giao cho @khorshuheng Xem trên GitHub
bug login
Ngôn ngữ chính
Dart
Star
76.6k
Fork
6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Bug Description

When trying to login via a magic-link or OAuth, users are either sent a link via email, or taken to the said service to login through it via the browser. Both scenarios will yield an `open with xdg-open` when prompted.

Adding the mimetype `x-scheme-handler/appflowy-flutter` in `.config/mimeapps.list ` does result in a correct link to AppFlowy when prompted.

`.config/mimeapps.list`
```
[Default Applications]
.
..
...
x-scheme-handler/appflowy-flutter=appflowy.desktop
```
Where `appflowy.desktop` is as follows:

```
[Desktop Entry]
Name=AppFlowy
GenericName=App Flowy Notes
Comment=Bring projects, wikis, and teams together with AI
Icon=AppFlowy
Type=Application
Categories=office;
DBusActivatable=true
SingleMainWindow=true
X-GNOME-UsesNotifications=true
X-GNOME-SingleWindow=true
Exec=PATH/TO/APPIMAGE %U
StartupNotify=false
Terminal=false
MimeType=x-scheme-handler/appflowy-flutter;

```

However, this will still lead to an issue where AppFlowy does not respond to the access token. Following https://github.com/AppFlowy-IO/AppFlowy/issues/5651#issuecomment-2370820785 solution, and manually grabbing the access token and executing AppFlowy will result in a buffer overflow.

The hacky way around this for magic-links is to delete both `&expires_at` and `expires_in` from the access token.

### How to Reproduce

Attempt to login using the AppImage

### Expected Behavior

Normal login process

### Operating System

Solus OS

### AppFlowy Version(s)

0.7.1

### Screenshots

_No response_

### Additional Context

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.