What is the validity of gitlab refresh token while using gitlab as oauth2 application

I am using a gitlab oauth2 application for authorizating gitlab, now as the non expiry token are removed. I was wondering if gitlab has restriction on the validity of a refresh token. Could not find anything in the docs can someone help me and point out to any documentation