Unable to use desktop nor mobile app

Nextcloud version 16.0.1 / Nextcloud desktop client 2.5.2.5231
Operating system and version Centos Linux 7.6.1810 (Core)
Apache or nginx version 2.4.6
PHP version 7.3.6

The issue you are facing:
Mobile app and desktop client could not connect to server.
I am able to use my credentials to log in through web interface but was not able to log in on Windows client. After logging in it asks me to grant access, after granting access it gets stuck on that screen and never goes through. Tried logging in on mobile app and login was rejected, error code 401. Nextcloud log is not updated nor Apache error log. Apache access log is submitted below.

Is this the first time you’ve seen this error? Yes

Steps to replicate it:

  1. Connect to server address
  2. Log in
  3. Grant access

192.168.100.194 - - [28/Jun/2019:11:04:31 +0200] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 586 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:04:13 +0200] “GET /index.php/apps/logreader/poll?lastReqId=XRXQyBNKStgLbW9NTa7HWwAAAA8 HTTP/1.1” 200 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:04:33 +0200] “GET /index.php/apps/logreader/poll?lastReqId=XRXQyBNKStgLbW9NTa7HWwAAAA8 HTTP/1.1” 200 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:05:01 +0200] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 586 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:04:53 +0200] “GET /index.php/apps/logreader/poll?lastReqId=XRXQyBNKStgLbW9NTa7HWwAAAA8 HTTP/1.1” 200 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:05:31 +0200] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 586 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:05:14 +0200] “GET /index.php/apps/logreader/poll?lastReqId=XRXQyBNKStgLbW9NTa7HWwAAAA8 HTTP/1.1” 200 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:05:34 +0200] “GET /index.php/apps/logreader/poll?lastReqId=XRXQyBNKStgLbW9NTa7HWwAAAA8 HTTP/1.1” 200 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:06:01 +0200] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 586 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”
192.168.100.194 - - [28/Jun/2019:11:05:54 +0200] “GET /index.php/apps/logreader/poll?lastReqId=XRXQyBNKStgLbW9NTa7HWwAAAA8 HTTP/1.1” 200 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”