forked from mtusi2026/mtusi2026lab2
fix(app) backported some things agent broke in lab2 and bugfixed other autocheck issues manually
This commit is contained in:
@@ -64,7 +64,7 @@ func (s *Store) Create(ctx context.Context, userID uuid.UUID) (string, time.Time
|
||||
return "", time.Time{}, fmt.Errorf("generate token: %w", err)
|
||||
}
|
||||
token := base64.RawURLEncoding.EncodeToString(raw)
|
||||
expiresAt := time.Now().UTC().Truncate(time.Second).Add(s.ttl)
|
||||
expiresAt := time.Now().UTC().Add(s.ttl)
|
||||
|
||||
opCtx, cancel := context.WithTimeout(ctx, s.timeout)
|
||||
defer cancel()
|
||||
|
||||
Reference in New Issue
Block a user