mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-10-10 04:35:07 +00:00
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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user