# Bug NEX-326 - The Access Token expiry date not updated on refresh for FileStorage tokens

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-326

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.2.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Dominic Bräunlein |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Connect OpenProject and NextCloud using file storage 
2.  Make sure the access token is listed on the access token page in My Account
3.  Observe the expiry date which is one hr from created date (FileStorage token)
4.  Link one file to workpackage

### What is the buggy behavior?

*   After 1 hr if you log into the system and check the workpacakge for the link between OP and NC, it would be intact 
*   Expiry time of the token will remain the same old time (older than current time)
*   If you check the token expiry on oc\_authtoken table, you may find that expiry time is changed to a later time.

### What is the expected behavior?

1.  Expiry date and time reported on access token page on Open Project should reflect the actual token time set on the next cloud

###   

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [x] Packaged installation
    *   Ubuntu
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

NextCloud version 27; Open Project version 13.0
