mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 19:18:22 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			304 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			304 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from typing import Optional
 | 
						|
 | 
						|
from pydantic import UUID4, BaseModel
 | 
						|
from pydantic.types import constr
 | 
						|
 | 
						|
 | 
						|
class Token(BaseModel):
 | 
						|
    access_token: str
 | 
						|
    token_type: str
 | 
						|
 | 
						|
 | 
						|
class TokenData(BaseModel):
 | 
						|
    user_id: Optional[UUID4]
 | 
						|
    username: Optional[constr(to_lower=True, strip_whitespace=True)] = None
 |