--bug=1051986 --user=王孝刚 【登录】登录页面选择 OAuth2 方式,没有反应 https://www.tapd.cn/57709429/s/1650890
This commit is contained in:
wxg0103 2025-02-05 15:36:33 +08:00
parent 194cce2914
commit a2cb4fc0ee

View File

@ -179,7 +179,7 @@ function redirectAuth(authType: string) {
if (authType === 'OIDC') {
url = `${config.authEndpoint}?client_id=${config.clientId}&redirect_uri=${redirectUrl}&response_type=code&scope=openid+profile+email`
}
if (authType === 'OAUTH2') {
if (authType === 'OAuth2') {
url =
`${config.authEndpoint}?client_id=${config.clientId}&response_type=code` +
`&redirect_uri=${redirectUrl}&state=${res.data.id}`