@opexa/portal-components 0.0.178 → 0.0.181
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/hooks/useAuthenticateMutation.js +3 -1
- package/dist/client/hooks/useCreateDigitainGameSessionMutatio.js +3 -1
- package/dist/client/hooks/useCreateGCashDepositMutation.js +3 -1
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -1
- package/dist/client/hooks/useCreateGameSessionMutation.js +6 -2
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +3 -1
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +3 -1
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -1
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +3 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +3 -1
- package/dist/client/hooks/useSignInMutation.js +3 -1
- package/dist/client/hooks/useSignUpMutation.js +3 -1
- package/dist/client/services/getSession.js +1 -3
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Cashback/Cashback.client.js +1 -1
- package/dist/components/Cashback/Cashback.js +1 -1
- package/dist/components/PortalProvider/SetupDomain.js +26 -9
- package/dist/components/Promo/Promo.js +1 -1
- package/dist/components/Promos/Cashback.js +1 -1
- package/dist/components/Promos/Promo.js +1 -1
- package/dist/handlers.js +1 -1
- package/dist/server/services/getSession.js +2 -6
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -13,7 +13,9 @@ export const useAuthenticateMutation = (config) => {
|
|
|
13
13
|
const session = await getSession();
|
|
14
14
|
await authenticate(input, {
|
|
15
15
|
headers: {
|
|
16
|
-
|
|
16
|
+
...(session.domain && {
|
|
17
|
+
Domain: session.domain,
|
|
18
|
+
}),
|
|
17
19
|
},
|
|
18
20
|
});
|
|
19
21
|
await queryClient.invalidateQueries({
|
|
@@ -20,7 +20,9 @@ export const useCreateDigitainGameSessionMutatio = (config) => {
|
|
|
20
20
|
}, {
|
|
21
21
|
headers: {
|
|
22
22
|
Authorization: `Bearer ${session.token}`,
|
|
23
|
-
|
|
23
|
+
...(session.domain && {
|
|
24
|
+
Domain: session.domain,
|
|
25
|
+
}),
|
|
24
26
|
},
|
|
25
27
|
});
|
|
26
28
|
const data = await createPoll(async () => {
|
|
@@ -22,7 +22,9 @@ export const useCreateGCashDepositMutation = (config) => {
|
|
|
22
22
|
await createGCashDeposit({ ...input, id }, {
|
|
23
23
|
headers: {
|
|
24
24
|
Authorization: `Bearer ${session.token}`,
|
|
25
|
-
|
|
25
|
+
...(session.domain && {
|
|
26
|
+
Domain: session.domain,
|
|
27
|
+
}),
|
|
26
28
|
},
|
|
27
29
|
});
|
|
28
30
|
const poll = createPoll(async () => {
|
|
@@ -16,7 +16,9 @@ export const useCreateGCashWithdrawalMutation = (config) => {
|
|
|
16
16
|
await createGCashWithdrawal({ ...input, id }, {
|
|
17
17
|
headers: {
|
|
18
18
|
Authorization: `Bearer ${session.token}`,
|
|
19
|
-
|
|
19
|
+
...(session.domain && {
|
|
20
|
+
Domain: session.domain,
|
|
21
|
+
}),
|
|
20
22
|
},
|
|
21
23
|
});
|
|
22
24
|
return id;
|
|
@@ -22,8 +22,10 @@ export const useCreateGameSessionMutation = (config) => {
|
|
|
22
22
|
game: 'reference' in game ? game.reference : game.id,
|
|
23
23
|
}, {
|
|
24
24
|
headers: {
|
|
25
|
-
Domain: session.domain,
|
|
26
25
|
Authorization: `Bearer ${session.token}`,
|
|
26
|
+
...(session.domain && {
|
|
27
|
+
Domain: session.domain,
|
|
28
|
+
}),
|
|
27
29
|
},
|
|
28
30
|
});
|
|
29
31
|
const data = await createPoll(async () => {
|
|
@@ -54,7 +56,9 @@ export const useCreateGameSessionMutation = (config) => {
|
|
|
54
56
|
}, {
|
|
55
57
|
headers: {
|
|
56
58
|
Authorization: `Bearer ${session.token}`,
|
|
57
|
-
|
|
59
|
+
...(session.domain && {
|
|
60
|
+
Domain: session.domain,
|
|
61
|
+
}),
|
|
58
62
|
},
|
|
59
63
|
});
|
|
60
64
|
const data = await createPoll(async () => {
|
|
@@ -16,7 +16,9 @@ export const useCreateInstapayWithdrawalMutation = (config) => {
|
|
|
16
16
|
await createAIOInstapayWithdrawal({ ...input, id }, {
|
|
17
17
|
headers: {
|
|
18
18
|
Authorization: `Bearer ${session.token}`,
|
|
19
|
-
|
|
19
|
+
...(session.domain && {
|
|
20
|
+
Domain: session.domain,
|
|
21
|
+
}),
|
|
20
22
|
},
|
|
21
23
|
});
|
|
22
24
|
return id;
|
|
@@ -22,6 +22,9 @@ export const useCreateMayaAppDepositMutation = (config) => {
|
|
|
22
22
|
await createMayaAppDeposit({ ...input, id }, {
|
|
23
23
|
headers: {
|
|
24
24
|
Authorization: `Bearer ${session.token}`,
|
|
25
|
+
...(session.domain && {
|
|
26
|
+
Domain: session.domain,
|
|
27
|
+
}),
|
|
25
28
|
},
|
|
26
29
|
});
|
|
27
30
|
const poll = createPoll(async () => {
|
|
@@ -30,7 +33,6 @@ export const useCreateMayaAppDepositMutation = (config) => {
|
|
|
30
33
|
return await getDeposit(id, {
|
|
31
34
|
headers: {
|
|
32
35
|
Authorization: `Bearer ${session.token}`,
|
|
33
|
-
Domain: session.domain,
|
|
34
36
|
},
|
|
35
37
|
});
|
|
36
38
|
}, {
|
|
@@ -16,7 +16,9 @@ export const useCreateMayaAppWithdrawalMutation = (config) => {
|
|
|
16
16
|
await createMayaAppWithdrawal({ ...input, id }, {
|
|
17
17
|
headers: {
|
|
18
18
|
Authorization: `Bearer ${session.token}`,
|
|
19
|
-
|
|
19
|
+
...(session.domain && {
|
|
20
|
+
Domain: session.domain,
|
|
21
|
+
}),
|
|
20
22
|
},
|
|
21
23
|
});
|
|
22
24
|
return id;
|
|
@@ -22,7 +22,9 @@ export const useCreateMayaDepositMutation = (config) => {
|
|
|
22
22
|
await createMayaDeposit({ ...input, id }, {
|
|
23
23
|
headers: {
|
|
24
24
|
Authorization: `Bearer ${session.token}`,
|
|
25
|
-
|
|
25
|
+
...(session.domain && {
|
|
26
|
+
Domain: session.domain,
|
|
27
|
+
}),
|
|
26
28
|
},
|
|
27
29
|
});
|
|
28
30
|
const poll = createPoll(async () => {
|
|
@@ -16,7 +16,9 @@ export const useCreateMayaWithdrawalMutation = (config) => {
|
|
|
16
16
|
await createMayaWithdrawal({ ...input, id }, {
|
|
17
17
|
headers: {
|
|
18
18
|
Authorization: `Bearer ${session.token}`,
|
|
19
|
-
|
|
19
|
+
...(session.domain && {
|
|
20
|
+
Domain: session.domain,
|
|
21
|
+
}),
|
|
20
22
|
},
|
|
21
23
|
});
|
|
22
24
|
return id;
|
|
@@ -22,7 +22,9 @@ export const useCreateOnlineBankDepositMutation = (config) => {
|
|
|
22
22
|
await createAIOOnlineBankDeposit({ ...input, id }, {
|
|
23
23
|
headers: {
|
|
24
24
|
Authorization: `Bearer ${session.token}`,
|
|
25
|
-
|
|
25
|
+
...(session.domain && {
|
|
26
|
+
Domain: session.domain,
|
|
27
|
+
}),
|
|
26
28
|
},
|
|
27
29
|
});
|
|
28
30
|
const poll = createPoll(async () => {
|
|
@@ -22,7 +22,9 @@ export const useCreateQRPHDepositMutation = (config) => {
|
|
|
22
22
|
await createAIOQRPHDeposit({ ...input, id }, {
|
|
23
23
|
headers: {
|
|
24
24
|
Authorization: `Bearer ${session.token}`,
|
|
25
|
-
|
|
25
|
+
...(session.domain && {
|
|
26
|
+
Domain: session.domain,
|
|
27
|
+
}),
|
|
26
28
|
},
|
|
27
29
|
});
|
|
28
30
|
const poll = createPoll(async () => {
|
|
@@ -13,7 +13,9 @@ export const useSignInMutation = (config) => {
|
|
|
13
13
|
const session = await getSession();
|
|
14
14
|
const authenticator = await signIn(input, {
|
|
15
15
|
headers: {
|
|
16
|
-
|
|
16
|
+
...(session.domain && {
|
|
17
|
+
Domain: session.domain,
|
|
18
|
+
}),
|
|
17
19
|
},
|
|
18
20
|
});
|
|
19
21
|
if (!authenticator) {
|
|
@@ -10,7 +10,9 @@ export const useSignUpMutation = (config) => {
|
|
|
10
10
|
const session = await getSession();
|
|
11
11
|
return await registerMemberAccountViaMobile(input, {
|
|
12
12
|
headers: {
|
|
13
|
-
|
|
13
|
+
...(session.domain && {
|
|
14
|
+
Domain: session.domain,
|
|
15
|
+
}),
|
|
14
16
|
},
|
|
15
17
|
});
|
|
16
18
|
},
|
|
@@ -2,7 +2,5 @@ import { cache } from 'react';
|
|
|
2
2
|
import { httpRequest, } from '../../services/httpRequest.js';
|
|
3
3
|
export const getSession = cache(async (options) => {
|
|
4
4
|
const res = await httpRequest.json('/api/sessions', options);
|
|
5
|
-
return res.ok
|
|
6
|
-
? res.data
|
|
7
|
-
: { status: 'unauthenticated', domain: window.location.origin };
|
|
5
|
+
return res.ok ? res.data : { status: 'unauthenticated', domain: null };
|
|
8
6
|
});
|
|
@@ -21,7 +21,7 @@ export async function Bonus(props) {
|
|
|
21
21
|
prefetchBonusQuery(props.id),
|
|
22
22
|
]);
|
|
23
23
|
if (result.status === 'fulfilled' && result.value) {
|
|
24
|
-
return (_jsxs(_Fragment, { children: [_jsx("meta", { name: "description", content: stripTags(result.value.promo.description) }), _jsx("meta", { name: "og:title", content: result.value.promo.name }), _jsx("meta", { name: "og:description", content: stripTags(result.value.promo.description) }), _jsx("meta", { name: "og:image", content: result.value.promo.banner
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsx("meta", { name: "description", content: stripTags(result.value.promo.description) }), _jsx("meta", { name: "og:title", content: result.value.promo.name }), _jsx("meta", { name: "og:description", content: stripTags(result.value.promo.description) }), _jsx("meta", { name: "og:image", content: result.value.promo.banner?.url }), _jsx("meta", { name: "twitter:title", content: result.value.promo.name }), _jsx("meta", { name: "twitter:description", content: stripTags(result.value.promo.description) }), _jsx("meta", { name: "twitter:image", content: result.value.promo.banner?.url }), _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), _jsx(Bonus__client, { ...props })] }));
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
27
|
return notFound();
|
|
@@ -24,7 +24,7 @@ export function Cashback__client(props) {
|
|
|
24
24
|
})));
|
|
25
25
|
if (!cashback)
|
|
26
26
|
return null;
|
|
27
|
-
return (_jsxs("div", { className: props.className, children: [_jsxs(Link, { href: props.viewAllPromosUrl ?? '/promos', className: "text-button-tertiary-fg flex w-fit items-center gap-lg text-lg font-semibold", children: [_jsx(ChevronLeftIcon, { className: "size-6" }), "Back to all Promotions"] }), cashback.banner
|
|
27
|
+
return (_jsxs("div", { className: props.className, children: [_jsxs(Link, { href: props.viewAllPromosUrl ?? '/promos', className: "text-button-tertiary-fg flex w-fit items-center gap-lg text-lg font-semibold", children: [_jsx(ChevronLeftIcon, { className: "size-6" }), "Back to all Promotions"] }), cashback.banner?.url && (_jsx(Image, { src: cashback.banner.url, alt: "", width: 1024, height: 600, priority: true, unoptimized: true, className: "mt-xl h-auto w-full rounded-xl lg:mt-6" })), claimable && (_jsx(Button, { className: "mt-xl lg:mt-6", onClick: () => {
|
|
28
28
|
globalStore.depositWithdrawal.setOpen(true);
|
|
29
29
|
globalStore.depositWithdrawal.setPromo(cashback.id);
|
|
30
30
|
}, children: "Deposit Now" })), _jsx("h1", { className: "mt-xl text-2xl font-semibold lg:mt-6 lg:text-3xl", children: cashback.name }), _jsxs("p", { className: "text-text-secondary-700 mt-xl lg:mt-6", children: ["Ends", ' ', format(cashback.activationEndDateTime, 'MM/dd/yyy hh:mm:ss a', {
|
|
@@ -10,7 +10,7 @@ export async function Cashback(props) {
|
|
|
10
10
|
prefetchCashbackQuery(props.id),
|
|
11
11
|
]);
|
|
12
12
|
if (result.status === 'fulfilled' && result.value) {
|
|
13
|
-
return (_jsxs(_Fragment, { children: [_jsx("meta", { name: "description", content: stripTags(result.value.description) }), _jsx("meta", { name: "og:title", content: result.value.name }), _jsx("meta", { name: "og:description", content: stripTags(result.value.description) }), _jsx("meta", { name: "og:image", content: result.value.banner
|
|
13
|
+
return (_jsxs(_Fragment, { children: [_jsx("meta", { name: "description", content: stripTags(result.value.description) }), _jsx("meta", { name: "og:title", content: result.value.name }), _jsx("meta", { name: "og:description", content: stripTags(result.value.description) }), _jsx("meta", { name: "og:image", content: result.value.banner?.url }), _jsx("meta", { name: "twitter:title", content: result.value.name }), _jsx("meta", { name: "twitter:description", content: stripTags(result.value.description) }), _jsx("meta", { name: "twitter:image", content: result.value.banner?.url }), _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), _jsx(Cashback__client, { ...props })] }));
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
16
|
return notFound();
|
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useSearchParams } from 'next/navigation';
|
|
3
3
|
import { useTimeout } from 'usehooks-ts';
|
|
4
|
+
import { z } from 'zod';
|
|
4
5
|
import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
|
|
5
6
|
import { useUpdateSessionMutation } from '../../client/hooks/useUpdateSessionMutation.js';
|
|
7
|
+
const MarketSchema = z
|
|
8
|
+
.string()
|
|
9
|
+
.min(5)
|
|
10
|
+
.max(6)
|
|
11
|
+
.regex(/^[0-9]+$/)
|
|
12
|
+
.nullable()
|
|
13
|
+
.optional()
|
|
14
|
+
.catch(null);
|
|
6
15
|
export function SetupDomain() {
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
16
|
+
const query = useSessionQuery();
|
|
17
|
+
const mutation = useUpdateSessionMutation();
|
|
18
|
+
const params = useSearchParams();
|
|
10
19
|
useTimeout(() => {
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
20
|
+
const oldDomain = query.data?.domain;
|
|
21
|
+
const newMarket = MarketSchema.parse(params.get('m'));
|
|
22
|
+
const newDomain = newMarket
|
|
23
|
+
? `${window.location.host}/${newMarket}`
|
|
14
24
|
: `${window.location.host}`;
|
|
15
|
-
|
|
25
|
+
/* No domain set */
|
|
26
|
+
if (!oldDomain)
|
|
27
|
+
return mutation.mutate({ domain: newDomain });
|
|
28
|
+
/* No market ID */
|
|
29
|
+
if (!newMarket)
|
|
16
30
|
return;
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
/* Same domain with market */
|
|
32
|
+
if (oldDomain === newDomain)
|
|
33
|
+
return;
|
|
34
|
+
return mutation.mutate({ domain: newDomain });
|
|
35
|
+
}, query.isPending ? null : 1000);
|
|
19
36
|
return null;
|
|
20
37
|
}
|
|
@@ -10,7 +10,7 @@ export async function Promo(props) {
|
|
|
10
10
|
prefetchPromoQuery(props.id),
|
|
11
11
|
]);
|
|
12
12
|
if (result.status === 'fulfilled' && result.value) {
|
|
13
|
-
return (_jsxs(_Fragment, { children: [_jsx("meta", { name: "description", content: stripTags(result.value.description) }), _jsx("meta", { name: "og:title", content: result.value.name }), _jsx("meta", { name: "og:description", content: stripTags(result.value.description) }), _jsx("meta", { name: "og:image", content: result.value.banner
|
|
13
|
+
return (_jsxs(_Fragment, { children: [_jsx("meta", { name: "description", content: stripTags(result.value.description) }), _jsx("meta", { name: "og:title", content: result.value.name }), _jsx("meta", { name: "og:description", content: stripTags(result.value.description) }), _jsx("meta", { name: "og:image", content: result.value.banner?.url }), _jsx("meta", { name: "twitter:title", content: result.value.name }), _jsx("meta", { name: "twitter:description", content: stripTags(result.value.description) }), _jsx("meta", { name: "twitter:image", content: result.value.banner.url }), _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), _jsx(Promo__client, { ...props })] }));
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
16
|
return notFound();
|
|
@@ -11,7 +11,7 @@ export function Cashback({ data, viewDetailsUrl }) {
|
|
|
11
11
|
})));
|
|
12
12
|
const claimablePromos = useAvailablePromosQuery().data ?? [];
|
|
13
13
|
const claimable = claimablePromos.find((availablePromo) => availablePromo.id === data.id);
|
|
14
|
-
return (_jsxs("div", { className: "border-border-secondary bg-accent-50 bg-bg-primary-alt relative flex h-full flex-col overflow-hidden rounded-2xl border", children: [data.banner
|
|
14
|
+
return (_jsxs("div", { className: "border-border-secondary bg-accent-50 bg-bg-primary-alt relative flex h-full flex-col overflow-hidden rounded-2xl border", children: [data.banner?.url && (_jsx(Image, { src: data.banner.url, alt: data.name, width: 400, height: 202, loading: "lazy", unoptimized: true, className: "block aspect-[365/180] w-full object-cover" })), _jsxs("div", { className: "flex flex-grow flex-col px-4 pb-3xl pt-2xl", children: [_jsx("div", { className: "w-full grow text-center text-xl font-semibold", children: data.name }), _jsxs("div", { className: "mt-auto flex flex-col gap-3 pt-4 lg:flex-row", children: [claimable && (_jsx(Button, { size: "sm", onClick: () => {
|
|
15
15
|
globalStore.depositWithdrawal.setOpen(true);
|
|
16
16
|
globalStore.depositWithdrawal.setPromo(data.id);
|
|
17
17
|
}, children: "Get bonus" })), _jsx(Button, { size: "sm", variant: "outline", asChild: true, children: _jsxs(Link, { href: `${viewDetailsUrl}/${data.id}`, children: ["Read more", _jsxs("span", { className: "sr-only", children: [" about ", data.name] })] }) })] })] })] }));
|
|
@@ -11,7 +11,7 @@ export function Promo({ data, viewDetailsUrl }) {
|
|
|
11
11
|
})));
|
|
12
12
|
const claimablePromos = useAvailablePromosQuery().data ?? [];
|
|
13
13
|
const claimable = claimablePromos.find((availablePromo) => availablePromo.id === data.id);
|
|
14
|
-
return (_jsxs("div", { className: "border-border-secondary bg-accent-50 bg-bg-primary-alt relative flex h-full flex-col overflow-hidden rounded-2xl border", children: [data.banner
|
|
14
|
+
return (_jsxs("div", { className: "border-border-secondary bg-accent-50 bg-bg-primary-alt relative flex h-full flex-col overflow-hidden rounded-2xl border", children: [data.banner?.url && (_jsx(Image, { src: data.banner.url, alt: data.name, width: 400, height: 202, loading: "lazy", unoptimized: true, className: "block aspect-[365/180] w-full object-cover" })), _jsxs("div", { className: "flex flex-grow flex-col px-4 pb-3xl pt-2xl", children: [_jsx("div", { className: "w-full grow text-center text-xl font-semibold", children: data.name }), _jsxs("div", { className: "mt-auto flex flex-col gap-3 pt-4 lg:flex-row", children: [claimable && (_jsx(Button, { size: "sm", onClick: () => {
|
|
15
15
|
globalStore.depositWithdrawal.setOpen(true);
|
|
16
16
|
globalStore.depositWithdrawal.setPromo(data.id);
|
|
17
17
|
}, children: "Get bonus" })), _jsx(Button, { size: "sm", variant: "outline", asChild: true, children: _jsxs(Link, { href: `${viewDetailsUrl}/${data.id}`, children: ["Read more", _jsxs("span", { className: "sr-only", children: [" about ", data.name] })] }) })] })] })] }));
|
package/dist/handlers.js
CHANGED
|
@@ -62,7 +62,7 @@ export const GET = async (request, { params }) => {
|
|
|
62
62
|
if (path === 'sessions') {
|
|
63
63
|
const accessToken = request.cookies.get(ACCESS_TOKEN_COOKIE_NAME)?.value;
|
|
64
64
|
const refreshToken = request.cookies.get(REFRESH_TOKEN_COOKIE_NAME)?.value;
|
|
65
|
-
const domain = request.cookies.get(DOMAIN_COOKIE_NAME)?.value
|
|
65
|
+
const domain = request.cookies.get(DOMAIN_COOKIE_NAME)?.value;
|
|
66
66
|
if (!refreshToken) {
|
|
67
67
|
const response = NextResponse.json({
|
|
68
68
|
ok: true,
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { cookies
|
|
1
|
+
import { cookies } from 'next/headers';
|
|
2
2
|
import { cache } from 'react';
|
|
3
3
|
import { ACCESS_TOKEN_COOKIE_NAME, DOMAIN_COOKIE_NAME } from '../../constants/index.js';
|
|
4
4
|
export const getSession = cache(async () => {
|
|
5
5
|
const Cookies = await cookies();
|
|
6
|
-
const Headers = await headers();
|
|
7
6
|
const token = Cookies.get(ACCESS_TOKEN_COOKIE_NAME)?.value;
|
|
8
|
-
const domain = Cookies.get(DOMAIN_COOKIE_NAME)?.value
|
|
9
|
-
Headers.get('host') ??
|
|
10
|
-
Headers.get('x-forwarded-host') ??
|
|
11
|
-
'localhost';
|
|
7
|
+
const domain = Cookies.get(DOMAIN_COOKIE_NAME)?.value;
|
|
12
8
|
return token
|
|
13
9
|
? {
|
|
14
10
|
status: 'authenticated',
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ import type { ImageProps } from 'next/image';
|
|
|
7
7
|
*/
|
|
8
8
|
export type Session = {
|
|
9
9
|
status: 'authenticated';
|
|
10
|
-
domain
|
|
10
|
+
domain?: string | null;
|
|
11
11
|
token: string;
|
|
12
12
|
} | {
|
|
13
13
|
status: 'unauthenticated';
|
|
14
|
-
domain
|
|
14
|
+
domain?: string | null;
|
|
15
15
|
token?: null;
|
|
16
16
|
};
|
|
17
17
|
/**
|