| 
									
										
										
										
											2025-06-24 15:40:30 -07:00
										 |  |  | # /api/auth
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Authentication for the service. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## POST /api/auth
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Log into the service. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2025-06-24 16:25:07 -07:00
										 |  |  | 	username: string; | 
					
						
							| 
									
										
										
										
											2025-06-24 15:40:30 -07:00
										 |  |  | 	password_hash: string; //should be a base64-encoded SHA-256 hash of the user's client-entered pw | 
					
						
							|  |  |  | 	totp?: string; // TOTP if configured on account | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | ``` |