mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-30 21:55: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
		
			
				
	
	
		
			11 lines
		
	
	
		
			320 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			320 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| ALTER TABLE "sessions" ADD COLUMN "oauth_name" TEXT;
 | |
| 
 | |
| UPDATE "sessions"
 | |
| SET "oauth_name" = CASE
 | |
|   WHEN LOWER("provider") = 'github' THEN 'GitHub'
 | |
|   WHEN LOWER("provider") = 'google' THEN 'Google'
 | |
|   ELSE UPPER(SUBSTR("provider", 1, 1)) || SUBSTR("provider", 2)
 | |
| END
 | |
| WHERE "oauth_name" IS NULL AND "provider" IS NOT NULL;
 | |
| 
 |