Temporarily remove session expiration check

oauth2
Flashfyre 2024-05-05 14:57:58 -04:00
parent 223bb6e90c
commit 3553891e6e
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ func UpdateActiveSession(uuid []byte, token []byte) error {
func FetchUUIDFromToken(token []byte) ([]byte, error) {
var uuid []byte
err := handle.QueryRow("SELECT uuid FROM sessions WHERE token = ? AND expire > UTC_TIMESTAMP()", token).Scan(&uuid)
err := handle.QueryRow("SELECT uuid FROM sessions WHERE token = ?", token).Scan(&uuid)
if err != nil {
if err == sql.ErrNoRows {
return nil, err