mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:22:25 -05:00 
			
		
		
		
	comments
This commit is contained in:
		
					parent
					
						
							
								46640813bb
							
						
					
				
			
			
				commit
				
					
						99af433d8a
					
				
			
		
					 1 changed files with 11 additions and 5 deletions
				
			
		|  | @ -47,11 +47,17 @@ import ( | |||
| ) | ||||
| 
 | ||||
| const ( | ||||
| 	appsPath                 = "/api/v1/apps" | ||||
| 	authSignInPath           = "/auth/sign_in" | ||||
| 	oauthTokenPath           = "/oauth/token" | ||||
| 	oauthAuthorizePath       = "/oauth/authorize" | ||||
| 	SessionAuthorizedUser    = "authorized_user" | ||||
| 	appsPath           = "/api/v1/apps" | ||||
| 	authSignInPath     = "/auth/sign_in" | ||||
| 	oauthTokenPath     = "/oauth/token" | ||||
| 	oauthAuthorizePath = "/oauth/authorize" | ||||
| 	// SessionAuthorizedUser is the key set in the gin context for the id of | ||||
| 	// a User who has successfully passed Bearer token authorization. | ||||
| 	// The interface returned from grabbing this key should be parsed as a string. | ||||
| 	SessionAuthorizedUser = "authorized_user" | ||||
| 	// SessionAuthorizedAccount is the key set in the gin context for the Account | ||||
| 	// of a User who has successfully passed Bearer token authorization. | ||||
| 	// The interface returned from grabbing this key should be parsed as a *gtsmodel.Account | ||||
| 	SessionAuthorizedAccount = "authorized_account" | ||||
| ) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue