We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5add964 commit 28390ebCopy full SHA for 28390eb
server/handlers/oauth_login.go
@@ -7,7 +7,7 @@ import (
7
"golang.org/x/oauth2"
8
9
"github.com/gin-gonic/gin"
10
-
+ "github.com/google/uuid"
11
log "github.com/sirupsen/logrus"
12
13
"github.com/authorizerdev/authorizer/server/constants"
@@ -40,11 +40,8 @@ func OAuthLoginHandler() gin.HandlerFunc {
40
}
41
42
if state == "" {
43
- log.Debug("state is empty")
44
- c.JSON(400, gin.H{
45
- "error": "invalid state",
46
- })
47
- return
+ log.Debug("state is empty. creating a new state")
+ state = uuid.New().String()
48
49
50
var scope []string
0 commit comments