We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf9837c commit eb4819bCopy full SHA for eb4819b
docs/auth.ts
@@ -100,8 +100,24 @@ export const {
100
// use API data:
101
102
const data = await resSponsor.json();
103
- profile.sponsorInfo =
104
- data.data.organization?.sponsorshipForViewerAsSponsor;
+ // eslint-disable-next-line no-console
+ 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;
121
}
122
123
return profile;
0 commit comments