I have only installed Chat+ a couple of times and it seems my hardest issue is getting the oauth to work. I thought I had it figured out but this recent install again has me facing issues. Chat+ is up and running and I can log in using the login form. However, oauth is not working. I have generated the key and secret and filled in the oauth information in the oauth form in Chat+. I saved and then restarted the chat server. The oauth button appears but when I try to log in a user I get the, use my profile creds message, click yes, then after a few seconds the login appears again and the user is not logged into chat. Looking at the logs I see:
Exception while invoking method 'login' SyntaxError: Unexpected end of input at Object.parse (native) at CustomOAuth.getAccessToken (/opt/chat+/programs/server/packages/rocketchat_custom-oauth.js:166:17) at Object.handleOauthRequest (/opt/chat+/programs/server/packages/rocketchat_custom-oauth.js:224:28) at OAuth._requestHandlers.(anonymous function) (packages/oauth2.js:27:31) at middleware (packages/oauth.js:203:5) at packages/oauth.js:176:5
Any advice would be very appreciative.