Skip to content

Improve error message if not full token is not copied (Checksum correct) #1859

Description

@HazAT
image

If you fail to copy the full token - we should improve the error message to tell users they fucked up copying the full token (because checksum check failed)

Activity

  1. szokeasaurusrex commented on Dec 6, 2023

    @szokeasaurusrex
    Member

    We also need to make sure we validate the token on the client (or server) before sending

  2. szokeasaurusrex commented on Dec 27, 2023

    @szokeasaurusrex
    Member

    @HazAT I proposed a simpler change in #1876 that would add the more specific error message when a 401 status code is received from the server. Adding the error message based on the HTTP status allows us to skip parsing and validating the auth token client-side, but of course, we might end up adding the message even when the auth token was correctly copied, but some other problem occurred (e.g. token was revoked). Since the error message I wrote only instructs users to make sure they copied the token correctly, I think it is okay to add the message even when the error has a different cause.

    What do you think -- does #1876 accomplish what you wanted, or should we add the client-side validation for the auth token?

  3. HazAT commented on Dec 29, 2023

    @HazAT
    MemberAuthor

    No, I would not do it like this: 401 represents another error and showing only this message for 401 could confuse users even more.
    If the token is malformed can and should be validated by the client and has nothing to do with the return code.

  4. szokeasaurusrex commented on Dec 29, 2023

    @szokeasaurusrex
    Member

    Good point @HazAT – let's implement the validation per the original plan in that case

  5. added a commit that references this issue on Jan 4, 2024
    627559b
  6. szokeasaurusrex commented on Jan 5, 2024

    @szokeasaurusrex
    Member

    Reopening, since we needed to revert #1885 to fix #1888 temporarily, while we figure out what is causing #1888.

  7. added a commit that references this issue on Jan 8, 2024
    d52f56a
  8. added a commit that references this issue on Jan 8, 2024
    8be89c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions