* move oauth from CE build block to pro
* move oauth code and api handler under pro
* move common func back to auth from pro/auth
* change log level to Info for information logs
* fix import issue
* add debug logs
* check if user exists, handle oauth not configured for host SSO
* check if user exists, handle oauth not configured for host SSO
* check if user exists, handle oauth not configured for host SSO
* quit when websocket is closed
* quit when websocket is closed
* quit when websocket is closed
* avoid sending msg onb closed channel
* add debug log
* exit when oauth state is deleted
* add debug log
* handle oauth state not valid with appropirate message
* handle oauth state not valid with appropirate message
* check for invalid oauth state
* rm debug logs
* add pending users api
* insert user to pending users on first time oauth login
* add pending user check on headless login
* fix conflicting apis
* no records error
* add allowed emails domains for oauth singup to config
* check if user is allowed to signup
* improve oauth message prompts
* handle trial enddate error logs
* add pending users api
* insert user to pending users on first time oauth login
* add pending user check on headless login
* fix conflicting apis
* no records error
* add allowed emails domains for oauth singup to config
* check if user is allowed to signup
* block normal user login from accessing dashboard
* header change
* allow from ui header
* allow from ui header
* check for user role after decoding
* block oauth login for normal user
* handle other oauth provider callback funcs for user login