File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -425,7 +425,15 @@ <h1>Simpatico<span>HR</span></h1>
425425const urlParams = new URLSearchParams ( window . location . search ) ;
426426const roomId = urlParams . get ( 'room' ) ;
427427
428- if ( ! token || ! user . id ) { alert ( 'Please login first' ) ; window . location . href = '../auth/login.html' ; }
428+ const interviewId = urlParams . get ( 'interview_id' ) ;
429+ const magicToken = urlParams . get ( 'token' ) ;
430+ if ( ! token && magicToken && interviewId ) {
431+ token = magicToken ;
432+ user = { id : 'guest_' + interviewId , role : 'candidate' , is_guest : true } ;
433+ } else if ( ! token || ! user . id ) {
434+ alert ( 'Invalid interview link. Please check your invitation.' ) ;
435+ window . location . href = '../auth/login.html' ;
436+ }
429437
430438// ═══════════════════════════════════════════════════════
431439// STATE
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ <h3>🗑️ Delete Job</h3>
244244// ═══════════════════════════════════════════════════════════════
245245// CONFIG — NO EXPOSED CREDENTIALS
246246// ═══════════════════════════════════════════════════════════════
247- const WORKER_URL = ( localStorage . getItem ( 'workerUrl' ) || "https://solitary-sound-11b9.simpaticohrconsultancy.workers.dev" ) . replace ( / \/ $ / , '' ) ;
247+ const WORKER_URL = "https://api.simpaticohr.in" ;
248248
249249let allJobs = [ ] ;
250250let currentFilter = 'all' ;
You can’t perform that action at this time.
0 commit comments