Skip to content

Commit eb4819b

Browse files
committed
fix auth
1 parent bf9837c commit eb4819b

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/auth.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,24 @@ export const {
100100
// use API data:
101101

102102
const data = await resSponsor.json();
103-
profile.sponsorInfo =
104-
data.data.organization?.sponsorshipForViewerAsSponsor;
103+
// eslint-disable-next-line no-console
104+
console.log("sponsor data", data);
105+
106+
// {
107+
// "data": {
108+
// "user": {
109+
// "sponsorshipForViewerAsSponsor": {
110+
// "isActive": true,
111+
// "tier": {
112+
// "name": "$90 a month",
113+
// "monthlyPriceInDollars": 90
114+
// }
115+
// }
116+
// }
117+
// }
118+
// }
119+
120+
profile.sponsorInfo = data.data.user.sponsorshipForViewerAsSponsor;
105121
}
106122

107123
return profile;

0 commit comments

Comments
 (0)