Read the WeChat login payload at the request helper boundary

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Celekli
2026-10-02 14:22:01 -04:00
parent d3f71c4bb8
commit 8ad3bc3fbc
@@ -124,7 +124,8 @@ const request = (options) => {
// WeChat login flow with server-side session
const login = async () => {
const { code } = await wx.login();
const { data } = await request({
// request() already resolves res.data; do not unwrap a second data envelope.
const data = await request({
url: '/auth/wechat-login',
method: 'POST',
data: { code },