Ah ok try this, it worked for mine:
- SSH in and get to the Rails console:
cd /var/discourse
./launcher enter app
rails c
- Clear the two hidden credentials:
SiteSetting.discourse_id_client_id = ""
SiteSetting.discourse_id_client_secret = ""
exit
- In Admin → Settings → Login, toggle Enable Discourse ID off, then on.
