Replies: 3 comments 3 replies
-
Hi @razonyang 👋 Unfortunately, that's expected. But first a bit of rationale: Recently, we changed how we handle users vs customers. Before, everybody (sellers and customers) was a User on Polar. This was causing lot of limitations and weird UX issues (like the need to create a Polar account to access purchases). Now, there are Users (the sellers on Polar) and Customers (people who bought something from an Organization). The last point is crucial: each Organization has its own set of Customers, with their own ID, subscriptions and benefits. It means that, from an API point of view, an Organization doesn't interact with Users, only with the Customers it owns. This pattern allowed us to unlock lot of interesting things, like Customer Portal, Customer metadata, and lots of good things for the future. You can read all the details about it here: #4543 Now, to your issue. The That said, if you have an interesting use-case requiring access to the GitHub username, we would be happy to tweak the API so this data can be surfaced. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your prompt reply.
I'm using Supabase for authentication, which allow logging in via GitHub etc. However, it doesn't support Polar or custom OAuth2 providers yet. So I'm trying to verify if a logged in GitHub user is a subscriber on Polar, and then decide whether to show or hide the premium posts, ADs and so on. The ideal approach is to log in with Polar, so that I can obtain Polar user information. I will try to implement Polar OAuth2 from scratch without the Supabase backend. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm thinking about if there is a subscription field to match userinfo's I've checked the It would be great and much easier if there was a field to match the userinfo' sub, so I don't need to checkout sessions, just need to redirect users to preset plans with URLs (just like GitHub sponsors page with tiers). |
Beta Was this translation helpful? Give feedback.
-
Dear Polar Team,
I'am using sandbox API for testing my integration, and I found that the subscriber's GitHub username is
null
.I confirmed that the subscriber has connected to GitHub (log in via GitHub).
The subscriptions API returns
null
.Beta Was this translation helpful? Give feedback.
All reactions