mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 23:55:44 +00:00 
			
		
		
		
	chore: cleanup redirect cookie
This commit is contained in:
		@@ -653,6 +653,9 @@ func (h *Handlers) OauthCallbackHandler(c *gin.Context) {
 | 
				
			|||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Clean up redirect cookie
 | 
				
			||||||
 | 
						c.SetCookie("tinyauth-redirect", "", -1, "/", "", h.Config.CookieSecure, true)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Redirect to continue with the redirect URI
 | 
						// Redirect to continue with the redirect URI
 | 
				
			||||||
	c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("%s/continue?%s", h.Config.AppURL, queries.Encode()))
 | 
						c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("%s/continue?%s", h.Config.AppURL, queries.Encode()))
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user