mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-31 06:05: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
		
			
				
	
	
		
			14 lines
		
	
	
		
			452 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			452 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package model
 | |
| 
 | |
| type Session struct {
 | |
| 	UUID        string `gorm:"column:uuid;primaryKey"`
 | |
| 	Username    string `gorm:"column:username"`
 | |
| 	Email       string `gorm:"column:email"`
 | |
| 	Name        string `gorm:"column:name"`
 | |
| 	Provider    string `gorm:"column:provider"`
 | |
| 	TOTPPending bool   `gorm:"column:totp_pending"`
 | |
| 	OAuthGroups string `gorm:"column:oauth_groups"`
 | |
| 	Expiry      int64  `gorm:"column:expiry"`
 | |
| 	OAuthName   string `gorm:"column:oauth_name"`
 | |
| }
 |