mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 12:11:22 +00:00
Made changes in login.ts
This commit is contained in:
parent
3fde09ef17
commit
ae4c1b85b4
@ -29,7 +29,7 @@ const login: LoginEndpoint['handlers']['login'] = async ({
|
||||
|
||||
const authCookie = prepareSetCookie(
|
||||
config.customerCookie,
|
||||
JSON.stringify(response.data.account),
|
||||
JSON.stringify(account),
|
||||
account.accessTokenExpiration ? { expires: new Date(account.accessTokenExpiration) }: {},
|
||||
)
|
||||
setCookies(res, [authCookie])
|
||||
|
Loading…
x
Reference in New Issue
Block a user