Gitlab Oauth Issue

Hi All,
I have created GitLab access token using OAuth2 using the link
but there is some issue with the access token.
The token seems to work some times and gives proper data as well but some times it return an error as Unauthorized.
Can anyone let me why I am facing such kind of issue and help me fixing it.