@@ -59,16 +59,16 @@ describe('Authentication API (OIDC)', () => {
5959 const bobRootPath = path . normalize ( path . join ( __dirname , '../resources/accounts-scenario/bob' ) )
6060 let alicePod
6161 let bobPod
62-
63- async function createPods ( ) {
62+
63+ async function createPods ( ) {
6464 alicePod = await ldnode . createServer (
6565 Object . assign ( {
6666 root : aliceRootPath ,
6767 serverUri : aliceServerUri ,
6868 dbPath : aliceDbPath
6969 } , serverConfig )
7070 )
71-
71+
7272 bobPod = await ldnode . createServer (
7373 Object . assign ( {
7474 root : bobRootPath ,
@@ -84,12 +84,12 @@ describe('Authentication API (OIDC)', () => {
8484 console . error ( `Server on port ${ port } error:` , err )
8585 reject ( err )
8686 } )
87-
87+
8888 const server = pod . listen ( port , ( ) => {
8989 console . log ( `Server started on port ${ port } ` )
9090 resolve ( )
9191 } )
92-
92+
9393 server . on ( 'error' , ( err ) => {
9494 console . error ( `Server listen error on port ${ port } :` , err )
9595 reject ( err )
@@ -99,31 +99,31 @@ describe('Authentication API (OIDC)', () => {
9999
100100 before ( async function ( ) {
101101 this . timeout ( 60000 ) // 60 second timeout for server startup with OIDC initialization
102-
102+
103103 // Clean and recreate OIDC database directories to ensure fresh state
104104 const aliceOidcPath = path . join ( aliceDbPath , 'oidc' )
105105 const bobOidcPath = path . join ( bobDbPath , 'oidc' )
106-
106+
107107 // Remove any existing OIDC data to prevent corruption
108108 console . log ( 'Cleaning OIDC directories...' )
109109 fs . removeSync ( aliceOidcPath )
110110 fs . removeSync ( bobOidcPath )
111-
111+
112112 // Create fresh directory structure
113113 fs . ensureDirSync ( path . join ( aliceOidcPath , 'op/clients' ) )
114114 fs . ensureDirSync ( path . join ( aliceOidcPath , 'op/tokens' ) )
115115 fs . ensureDirSync ( path . join ( aliceOidcPath , 'op/codes' ) )
116116 fs . ensureDirSync ( path . join ( aliceOidcPath , 'users' ) )
117117 fs . ensureDirSync ( path . join ( aliceOidcPath , 'rp/clients' ) )
118-
118+
119119 fs . ensureDirSync ( path . join ( bobOidcPath , 'op/clients' ) )
120120 fs . ensureDirSync ( path . join ( bobOidcPath , 'op/tokens' ) )
121121 fs . ensureDirSync ( path . join ( bobOidcPath , 'op/codes' ) )
122122 fs . ensureDirSync ( path . join ( bobOidcPath , 'users' ) )
123123 fs . ensureDirSync ( path . join ( bobOidcPath , 'rp/clients' ) )
124-
124+
125125 await createPods ( )
126-
126+
127127 await Promise . all ( [
128128 startServer ( alicePod , 7000 ) ,
129129 startServer ( bobPod , 7001 )
@@ -584,7 +584,7 @@ describe('Authentication API (OIDC)', () => {
584584
585585 before ( function ( ) {
586586 this . timeout ( 50000 ) // Long timeout for OIDC initialization
587-
587+
588588 auth = new SolidAuthOIDC ( { store : localStorage , window : { location : { } } } )
589589 const appOptions = {
590590 redirectUri : 'https://app.example.com/callback'
0 commit comments