From 633508483533f6af95af70b4eb8e2fdb76660f2d Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Tue, 14 Jun 2022 12:17:43 +0530 Subject: [PATCH] fix: add post method support for oauth callback --- server/routes/routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/routes/routes.go b/server/routes/routes.go index 4ce00f9..80bbcb1 100644 --- a/server/routes/routes.go +++ b/server/routes/routes.go @@ -23,6 +23,7 @@ func InitRouter(log *logrus.Logger) *gin.Engine { router.GET("/playground", handlers.PlaygroundHandler()) router.GET("/oauth_login/:oauth_provider", handlers.OAuthLoginHandler()) router.GET("/oauth_callback/:oauth_provider", handlers.OAuthCallbackHandler()) + router.POST("/oauth_callback/:oauth_provider", handlers.OAuthCallbackHandler()) router.GET("/verify_email", handlers.VerifyEmailHandler()) // OPEN ID routes router.GET("/.well-known/openid-configuration", handlers.OpenIDConfigurationHandler())