mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-31 22:25:43 +00:00 
			
		
		
		
	 5c866bad1a
			
		
	
	5c866bad1a
	
	
	
		
			
			* feat: add flag decoder (candidate) * refactor: finalize flags decoder * feat: add env decoder * feat: add oauth config parsing logic * feat: implement backend logic for multiple oauth providers * feat: implement multiple oauth providers in the frontend * feat: add some default icons * chore: add credits for parser * feat: style oauth auto redirect screen * fix: bot suggestions * refactor: rework decoders using simpler and more efficient pattern * refactor: rework oauth name database migration
		
			
				
	
	
		
			15 lines
		
	
	
		
			333 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			333 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { z } from "zod";
 | |
| 
 | |
| export const userContextSchema = z.object({
 | |
|   isLoggedIn: z.boolean(),
 | |
|   username: z.string(),
 | |
|   name: z.string(),
 | |
|   email: z.string(),
 | |
|   provider: z.string(),
 | |
|   oauth: z.boolean(),
 | |
|   totpPending: z.boolean(),
 | |
|   oauthName: z.string(),
 | |
| });
 | |
| 
 | |
| export type UserContextSchema = z.infer<typeof userContextSchema>;
 |