GET /api/v1/auth/oauth/google
GET
/api/v1/auth/oauth/google发起 Google OAuth 登录(302 跳转)
请求示例
cURL
curl -X GET 'http://localhost:8080/api/v1/auth/oauth/google' \
-H 'Accept: application/json'JavaScript
const res = await fetch('http://localhost:8080/api/v1/auth/oauth/google', {
method: 'GET',
headers: {
'Accept': 'application/json'
},
});
const data = await res.json();Python
import requests
res = requests.get(
'http://localhost:8080/api/v1/auth/oauth/google',
headers={'Accept': 'application/json'}
)
print(res.json())响应
302重定向到 Google 授权页
在线调试
在线调试
凭证仅保存在当前页面内存中自定义请求 Header
