[GH-ISSUE #6105] [Bug] Can't login with email #2707

Closed
opened 2026-03-23 21:24:35 +00:00 by mirror · 13 comments
Owner

Originally created by @virtualfuzz on GitHub (Aug 29, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6105

Bug Description

When I try to login with an email, I receive a link in my email, I click on it, it opens AppFlowy but it doesn't log me in.

How to Reproduce

Try to login on Windows/Linux(NixOS) and it won't work. Doesn't happen on Android.

Expected Behavior

That I am able to login.

Operating System

Windows 10/NixOS 24.11

AppFlowy Version(s)

On Windows it was 0.6.7.2, on NixOS it was 0.6.6

Screenshots

Bildschirmfoto_20240829_133316
For some reason when I try to log in using the link a small bar appears on the bottom of the application.

Additional Context

No response

Originally created by @virtualfuzz on GitHub (Aug 29, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6105 ### Bug Description When I try to login with an email, I receive a link in my email, I click on it, it opens AppFlowy but it doesn't log me in. ### How to Reproduce Try to login on Windows/Linux(NixOS) and it won't work. Doesn't happen on Android. ### Expected Behavior That I am able to login. ### Operating System Windows 10/NixOS 24.11 ### AppFlowy Version(s) On Windows it was 0.6.7.2, on NixOS it was 0.6.6 ### Screenshots ![Bildschirmfoto_20240829_133316](https://github.com/user-attachments/assets/1ed8c216-d426-45b1-90ec-b8ed3592b442) For some reason when I try to log in using the link a small bar appears on the bottom of the application. ### Additional Context _No response_
mirror 2026-03-23 21:24:35 +00:00
Author
Owner

@Xazin commented on GitHub (Aug 29, 2024):

Hey, I am sorry to hear you're having trouble signing in.

You mention a small bar showing at the bottom, but it's not included in the picture, can you share what it says?

Would it be possible for you to send me your log files at mathias@appflowy.io - or in a DM on Discord?

You can find out how to find your log files here: https://appflowy.com/a1b45051-39f5-469b-88da-d008ef40bc5a/AppFlowy-Q-A-efd81847-90da-4ca7-af28-9e7491c2d9ea


Note: You can use the anonymous sign-in option to get access to the settings page to quickly find the location of your AppFlowy Data.

<!-- gh-comment-id:2317438658 --> @Xazin commented on GitHub (Aug 29, 2024): Hey, I am sorry to hear you're having trouble signing in. You mention a small bar showing at the bottom, but it's not included in the picture, can you share what it says? Would it be possible for you to send me your log files at mathias@appflowy.io - or in a DM on Discord? You can find out how to find your log files here: https://appflowy.com/a1b45051-39f5-469b-88da-d008ef40bc5a/AppFlowy-Q-A-efd81847-90da-4ca7-af28-9e7491c2d9ea --- Note: You can use the anonymous sign-in option to get access to the settings page to quickly find the location of your AppFlowy Data.
Author
Owner

@speed2exe commented on GitHub (Aug 29, 2024):

@Ash882

if you are using home manger, add this to your home.nix, replace path/to/appflowy with some script to open it up or binary (if you download it)

{ config, pkgs, ... }:

{

  xdg.mimeApps = {
    enable = true;
    associations.added = {
      "x-scheme-handler/appflowy-flutter" = [ "appflowy-flutter.desktop" ];
    };
    defaultApplications = {
      "x-scheme-handler/appflowy-flutter" = [ "appflowy-flutter.desktop" ];
    };
  };

  xdg.desktopEntries = {
    appflowy-flutter = {
      name = "Appflowy Flutter";
      exec = "<path/to/appflowy> %U";
      terminal = false;
      categories = [ "Application" ];
      mimeType = [ "x-scheme-handler/appflowy-flutter" ];
    };
  };

  ... 

}
<!-- gh-comment-id:2317462095 --> @speed2exe commented on GitHub (Aug 29, 2024): @Ash882 if you are using home manger, add this to your home.nix, replace `path/to/appflowy` with some script to open it up or binary (if you download it) ```nix { config, pkgs, ... }: { xdg.mimeApps = { enable = true; associations.added = { "x-scheme-handler/appflowy-flutter" = [ "appflowy-flutter.desktop" ]; }; defaultApplications = { "x-scheme-handler/appflowy-flutter" = [ "appflowy-flutter.desktop" ]; }; }; xdg.desktopEntries = { appflowy-flutter = { name = "Appflowy Flutter"; exec = "<path/to/appflowy> %U"; terminal = false; categories = [ "Application" ]; mimeType = [ "x-scheme-handler/appflowy-flutter" ]; }; }; ... } ```
Author
Owner

@Xazin commented on GitHub (Aug 29, 2024):

Thanks for the logs by the way, I read through them and could not find anything crucial.

The error on Windows was that the link was expired, meaning the token could no longer be used. I'm unsure about the validity of the error, as you know best yourself how long it took from email sent till the link was pressed and the application opened as a result. I believe it has a lifetime of 5 minutes, so if the time passed you would have to request a new login link.

As for the Linux logs, there was no log signaling the deep link connection, I believe that can be a result of the application not being configured properly, if you're not using the .deb or .rpm, you will have to configure the deep link yourself. Refer to @speed2exe 's message above if you're using Home Manager.

<!-- gh-comment-id:2318882269 --> @Xazin commented on GitHub (Aug 29, 2024): Thanks for the logs by the way, I read through them and could not find anything crucial. The error on Windows was that the link was expired, meaning the token could no longer be used. I'm unsure about the validity of the error, as you know best yourself how long it took from email sent till the link was pressed and the application opened as a result. I believe it has a lifetime of 5 minutes, so if the time passed you would have to request a new login link. As for the Linux logs, there was no log signaling the deep link connection, I believe that can be a result of the application not being configured properly, if you're not using the .deb or .rpm, you will have to configure the deep link yourself. Refer to @speed2exe 's message above if you're using Home Manager.
Author
Owner

@virtualfuzz commented on GitHub (Aug 29, 2024):

For the Windows thing, I found out that for some reason, when I was opening the link though my email, it wouldn't open the app and I had to reload the URL, which made the link expire since I tried to use it twice.

I was able to login in windows by copying the link and then pasting it the URL bar, which made appflowy open and login successfully.

Im still trying to find out what the Linux issue is but it might be related to the mimeApps thing.

EDIT: Don't think it's related to it because when I use the link I receive though my email it opens the app but doesn't login. I've also checked my .config/mimeapps.list and AppFlowy was there and setup properly.

x-scheme-handler/appflowy-flutter=appflowy.desktop

<!-- gh-comment-id:2318965269 --> @virtualfuzz commented on GitHub (Aug 29, 2024): For the Windows thing, I found out that for some reason, when I was opening the link though my email, it wouldn't open the app and I had to reload the URL, which made the link expire since I tried to use it twice. I was able to login in windows by copying the link and then pasting it the URL bar, which made appflowy open and login successfully. Im still trying to find out what the Linux issue is but it might be related to the mimeApps thing. EDIT: Don't think it's related to it because when I use the link I receive though my email it opens the app but doesn't login. I've also checked my .config/mimeapps.list and AppFlowy was there and setup properly. `x-scheme-handler/appflowy-flutter=appflowy.desktop`
Author
Owner

@virtualfuzz commented on GitHub (Aug 30, 2024):

When starting the app from the command line I also get this error that didn't show up in the logs:
** (AppFlowy:57095): CRITICAL **: 11:53:52.997: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

Maybe it's related to that?

I'm using the AppFlowy from the NixOS unstable repo.

<!-- gh-comment-id:2320710263 --> @virtualfuzz commented on GitHub (Aug 30, 2024): When starting the app from the command line I also get this error that didn't show up in the logs: `** (AppFlowy:57095): CRITICAL **: 11:53:52.997: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found` Maybe it's related to that? I'm using the AppFlowy from the NixOS unstable repo.
Author
Owner

@arafth commented on GitHub (Sep 19, 2024):

Magic link email doesn't contains any email or button.
appflowy

<!-- gh-comment-id:2360018513 --> @arafth commented on GitHub (Sep 19, 2024): Magic link email doesn't contains any email or button. <img width="578" alt="appflowy" src="https://github.com/user-attachments/assets/9c956679-101c-4fbb-bd44-80ca737769d4">
Author
Owner

@speed2exe commented on GitHub (Sep 19, 2024):

@arafth there might be some issues displaying in your mail client. have you tried to view it in a web browser? try clicking the message in the banner to view it in a we browser.

<!-- gh-comment-id:2360034884 --> @speed2exe commented on GitHub (Sep 19, 2024): @arafth there might be some issues displaying in your mail client. have you tried to view it in a web browser? try clicking the message in the banner to view it in a we browser.
Author
Owner

@arafth commented on GitHub (Sep 19, 2024):

Display in browser also not working. But once I opened with another email client it works.
Note that, login email content doesn't render well in outlook.

<!-- gh-comment-id:2360212077 --> @arafth commented on GitHub (Sep 19, 2024): Display in browser also not working. But once I opened with another email client it works. Note that, login email content doesn't render well in outlook.
Author
Owner

@richardy2012 commented on GitHub (Nov 5, 2024):

image
I encountered some similar or similar problems. I could not log in normally. If I directly used the login shortcut buttons such as Google and GitHub, the abnormality in the picture would be reported. If I used the magic link to log in, entered the email, and clicked send, the mailbox would never receive any relevant emails.

<!-- gh-comment-id:2456557101 --> @richardy2012 commented on GitHub (Nov 5, 2024): ![image](https://github.com/user-attachments/assets/101046d9-f0f7-466f-99e7-43dde1e4e2fb) I encountered some similar or similar problems. I could not log in normally. If I directly used the login shortcut buttons such as Google and GitHub, the abnormality in the picture would be reported. If I used the magic link to log in, entered the email, and clicked send, the mailbox would never receive any relevant emails.
Author
Owner

@speed2exe commented on GitHub (Nov 5, 2024):

@richardy2012 I'd assume you are not self-hosting. Have you check the spam messages in your inbox?

<!-- gh-comment-id:2456923519 --> @speed2exe commented on GitHub (Nov 5, 2024): @richardy2012 I'd assume you are not self-hosting. Have you check the spam messages in your inbox?
Author
Owner

@leon-thomm commented on GitHub (Jun 7, 2025):

Just noting that the URL from the email is still broken for me on NixOS. Firefox won't open it at all, in Chrome I get an xdg error

Could not read file appflowy-flutter://#access_token=...ires_in=604800&refresh_token=...&token_type=bearer&type=magiclink.

since the app, for some reason, has no way to paste the OTP it renders the app unusable for me. I'm not using any home manager at the moment, the app should be working without it.

<!-- gh-comment-id:2951924917 --> @leon-thomm commented on GitHub (Jun 7, 2025): Just noting that the URL from the email is still broken for me on NixOS. Firefox won't open it at all, in Chrome I get an xdg error ``` Could not read file appflowy-flutter://#access_token=...ires_in=604800&refresh_token=...&token_type=bearer&type=magiclink. ``` since the app, for some reason, has no way to paste the OTP it renders the app unusable for me. I'm not using any home manager at the moment, the app should be working without it.
Author
Owner

@khorshuheng commented on GitHub (Jun 7, 2025):

Which version of the desktop app are you using? Enter OTP is only available on the newer versions.

<!-- gh-comment-id:2952008535 --> @khorshuheng commented on GitHub (Jun 7, 2025): Which version of the desktop app are you using? Enter OTP is only available on the newer versions.
Author
Owner

@leon-thomm commented on GitHub (Jun 7, 2025):

I was running on 0.8.8, on 0.9.1 I can enter the OTP. After restarting the app (it gets stuck at Verifying...) I am logged in 👍

<!-- gh-comment-id:2952149896 --> @leon-thomm commented on GitHub (Jun 7, 2025): I was running on 0.8.8, on 0.9.1 I can enter the OTP. After restarting the app (it gets stuck at `Verifying...`) I am logged in 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2707
No description provided.