usememos / memos

An open source, lightweight note-taking service. Easily capture and share your great thoughts.
https://usememos.com
MIT License
30.31k stars 2.27k forks source link

access token created everytime after the same user logout and login again #3674

Closed slyang40 closed 2 months ago

slyang40 commented 2 months ago

Describe the bug

Access token got created everytime after the same user logout and login again. and the expire date was set in 100 years. See below screenshot. image

Steps to reproduce

  1. Sign in Memos
  2. check the access token generated for this login
  3. logout Memos
  4. login again
  5. check the list of access tokens, you will find a new access token created with a pretty longer valid period, 100 years.

The version of Memos you're using.

v0.22.2

Screenshots or additional context

image

duckgun13476 commented 2 months ago

Yeah, I have the same problem: 屏幕截图 2024-07-11 082648

boojack commented 2 months ago

Fixed with https://github.com/usememos/memos/commit/6825c1def45fe61e872645cf94cfa1961612dc75