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 765941f commit a57a825Copy full SHA for a57a825
src/Providers/WeChat.php
@@ -92,7 +92,7 @@ protected function getCodeFields(): array
92
'redirect_uri' => $this->redirectUrl,
93
'response_type' => 'code',
94
'scope' => $this->formatScopes($this->scopes, $this->scopeSeparator),
95
- 'state' => $this->state ?: md5(time()),
+ 'state' => $this->state ?: md5(uniqid()),
96
'connect_redirect' => 1,
97
], $this->parameters);
98
}
0 commit comments