File tree Expand file tree Collapse file tree
react-ui/src/app/constants Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export const OPENOPS_CLOUD_URL = 'https://test.internal.openops.com/ ' ;
1+ export const OPENOPS_CLOUD_URL = 'https://test.internal.openops.com' ;
22export const OPENOPS_CONNECT_TEMPLATES_URL = `${ OPENOPS_CLOUD_URL } /connect` ;
33export const OPENOPS_CONNECT_TEMPLATES_LOGOUT_URL = `${ OPENOPS_CLOUD_URL } /oauth/logout` ;
44export const OPENOPS_CONNECT_TEMPLATES_POLL_INTERVAL_MS = 800 ;
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ export const cloudTemplateController: FastifyPluginAsyncTypebox = async (
6767 async ( request ) => {
6868 const user = getVerifiedUser ( request , publicKey ) ;
6969 if ( ! user ) {
70+ logger . info ( 'User is not authenticated' ) ;
71+
7072 return flowTemplateService . getFlowTemplates ( {
7173 search : request . query . search ,
7274 tags : request . query . tags ,
@@ -82,6 +84,8 @@ export const cloudTemplateController: FastifyPluginAsyncTypebox = async (
8284 } ) ;
8385 }
8486
87+ logger . info ( 'User is authenticated' ) ;
88+ return [ ] ;
8589 return flowTemplateService . getFlowTemplates ( {
8690 search : request . query . search ,
8791 tags : request . query . tags ,
Original file line number Diff line number Diff line change @@ -52,9 +52,11 @@ export const userInfoController: FastifyPluginAsyncTypebox = async (app) => {
5252 const user = getVerifiedUser ( request , publicKey ) ;
5353
5454 if ( ! user ) {
55+ logger . info ( 'User is not authenticated' ) ;
5556 return reply . status ( 401 ) . send ( ) ;
5657 }
5758
59+ logger . info ( 'User is authenticated' ) ;
5860 return user ;
5961 } ,
6062 ) ;
You can’t perform that action at this time.
0 commit comments