mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-31 14:15:50 +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
		
			
				
	
	
		
			20 lines
		
	
	
		
			455 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			455 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { z } from "zod";
 | |
| 
 | |
| export const providerSchema = z.object({
 | |
|   id: z.string(),
 | |
|   name: z.string(),
 | |
|   oauth: z.boolean(),
 | |
| });
 | |
| 
 | |
| export const appContextSchema = z.object({
 | |
|   providers: z.array(providerSchema),
 | |
|   title: z.string(),
 | |
|   appUrl: z.string(),
 | |
|   cookieDomain: z.string(),
 | |
|   forgotPasswordMessage: z.string(),
 | |
|   backgroundImage: z.string(),
 | |
|   oauthAutoRedirect: z.string(),
 | |
| });
 | |
| 
 | |
| export type AppContextSchema = z.infer<typeof appContextSchema>;
 |