Skip to content

Commit 7e1ffcc

Browse files
Update cookie
1 parent 8b34089 commit 7e1ffcc

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

packages/wallet/backend/src/account/service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ export class AccountService implements IAccountService {
111111
): Promise<Account[]> {
112112
const user = await User.query().findById(userId)
113113

114-
// NOT HERE
115114
if (!user || !user.gateHubUserId) {
116115
throw new NotFound()
117116
}
@@ -130,8 +129,6 @@ export class AccountService implements IAccountService {
130129

131130
const accounts = await query
132131

133-
console.log('accounts', JSON.stringify(accounts, null, 2))
134-
135132
if (!includeWalletAddress) {
136133
await Promise.all(
137134
accounts.map(async (acc) => {

packages/wallet/backend/src/gatehub/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,6 @@ export class GateHubClient {
370370
managedUserUuid
371371
})
372372

373-
console.log('getWalletBalance - ', JSON.stringify(response, null, 2))
374-
375373
return response
376374
}
377375

packages/wallet/backend/src/middleware/withSession.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@ import {
66
getIronSession
77
} from 'iron-session'
88

9+
let domain = env.RAFIKI_MONEY_FRONTEND_HOST
10+
11+
if (env.NODE_ENV === 'production' && env.GATEHUB_ENV === 'production') {
12+
domain = 'interledger.cards'
13+
}
14+
915
export const SESSION_OPTIONS: SessionOptions = {
1016
password: env.COOKIE_PASSWORD,
1117
cookieName: env.COOKIE_NAME,
1218
cookieOptions: {
1319
secure: env.NODE_ENV === 'production',
1420
sameSite: env.NODE_ENV === 'production' ? 'none' : 'lax',
15-
domain: env.RAFIKI_MONEY_FRONTEND_HOST,
21+
domain,
1622
httpOnly: true
1723
},
1824
ttl: env.COOKIE_TTL

0 commit comments

Comments
 (0)