Skip to content

Conversation

light-white
Copy link
Contributor

fix state to random code

Scopes: strings.Split(g.Config.Scope, ","),
}
return oauth2Config.AuthCodeURL("state")
state := state := randomString(24)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to assign values twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@LinkinStars LinkinStars self-assigned this Sep 1, 2025
@LinkinStars LinkinStars merged commit db916e8 into apache:main Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants