File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ export const authInterceptor: HttpInterceptorFn = (
1212 const cookieService = inject ( CookieService ) ;
1313
1414 const csrfToken = cookieService . get ( 'api-csrf' ) ;
15- const staging = cookieService . get ( 'osf_staging4' ) ;
16- console . log ( staging ) ;
1715
1816 if ( ! req . url . includes ( '/api.crossref.org/funders' ) ) {
1917 const headers : Record < string , string > = {
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ export class AuthService {
2121
2222 isAuthenticated ( ) : boolean {
2323 const csrfToken = this . cookieService . get ( 'api-csrf' ) ;
24+ const staging = this . cookieService . get ( 'osf_staging4' ) ;
25+ console . log ( staging , csrfToken ) ;
26+ console . log ( document . cookie ) ;
2427 const authenticated = ! ! csrfToken ;
2528
2629 this . actions . setAuthenticated ( authenticated ) ;
You can’t perform that action at this time.
0 commit comments