mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Auth: Store auth_method longer
Its not unrealistic that someone keeps being logged into the app for more than a year if not stored longer logout process might not work anymore
This commit is contained in:
		
							parent
							
								
									f12ac685e8
								
							
						
					
					
						commit
						d4ed6348ee
					
				| @ -221,8 +221,8 @@ class Auth { | ||||
|       res.cookie('auth_cb', callback, { maxAge: TWO_MINUTES, httpOnly: true }) | ||||
|     } | ||||
| 
 | ||||
|     // Store the authentication method for a year
 | ||||
|     res.cookie('auth_method', authMethod, { maxAge: 1000 * 60 * 60 * 24 * 365, httpOnly: true }) | ||||
|     // Store the authentication method for long
 | ||||
|     res.cookie('auth_method', authMethod, { maxAge: 1000 * 60 * 60 * 24 * 365 * 10, httpOnly: true }) | ||||
|   } | ||||
| 
 | ||||
|   /** | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user