Token Expired / Revoked After creating it

Hi

I have installed the SuiteCRM and configured the keys using openssl, then when i try to create any oauth token, its getting created successfully, but its ( oauth token) expiry date-time is 7 hours behind the date created, please check the following image links. Please reply as fast as possible.

Token Expired Error Image link

So when i use this token in the following get API, i’m getting following error.

API :

url : http://127.0.0.1:81/suitecrm/api/v8/modules/Accounts

Header :

Content-type: application/vnd.api+json
Accept: application/vnd.api+json
Authorization : Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjQ1YzdiZTExZWQ1ZWQ0OGMwOWVmNWUzYjhkYjYyMWI4MTMxNTk4MmE2NzJiNDQ5NzRiZjE0MjFlMjE2OTU3YjJiOTVjZTkwZTMyMjYzYzk3In0.eyJhdWQiOiIzYTg2MTUwYS00M2Q5LTMxNDQtNDcwNi01YWZhOGUyMzdlY2QiLCJqdGkiOiI0NWM3YmUxMWVkNWVkNDhjMDllZjVlM2I4ZGI2MjFiODEzMTU5ODJhNjcyYjQ0OTc0YmYxNDIxZTIxNjk1N2IyYjk1Y2U5MGUzMjI2M2M5NyIsImlhdCI6MTUyNjM2OTk3NywibmJmIjoxNTI2MzY5OTc3LCJleHAiOjE1MjYzNzM1NzcsInN1YiI6IiIsInNjb3BlcyI6WyJzdGFuZGFyZDpjcmVhdGUiLCJzdGFuZGFyZDpyZWFkIiwic3RhbmRhcmQ6dXBkYXRlIiwic3RhbmRhcmQ6ZGVsZXRlIiwic3RhbmRhcmQ6cmVsYXRpb25zaGlwOmNyZWF0ZSIsInN0YW5kYXJkOnJlbGF0aW9uc2hpcDpyZWFkIiwic3RhbmRhcmQ6cmVsYXRpb25zaGlwOnVwZGF0ZSIsInN0YW5kYXJkOnJlbGF0aW9uc2hpcDpkZWxldGUiXX0.b8JSGHeseziZsrdXa6TexfmLNkifEmt1al-3c0_mnQlJcPUhcoF8K77iRvPBOCc9tYkd19Rq6BlHXxDe1kqCJT9659xfLkTYAziZOI5WeZb8P_D8jPlBq910trERpLNY-12lqnNURiR4K1zAie4064oLBrLmNCvYVI7hvrkkwU4

API RESPONSE WITH ERROR: -

{
“error”: “access_denied”,
“message”: “The resource owner or authorization server denied the request.”,
“hint”: “Access token has been revoked”
}

Thanks in Advance, Please help us to fix this issue.

I found the fix for this issue, i have added the answer for this issue in this stackoverflow

https://stackoverflow.com/questions/50346554/suitecrm-token-expired-revoked-immediately-after-creating-it/50368887#50368887