docs: fix Electron and Polar example syntax (#11587)

This commit is contained in:
Deepanshu Pal
2026-10-13 08:25:54 +09:00
committed by GitHub
parent 23ee48ad9a
commit 7393f6350e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -311,7 +311,7 @@ function SignIn({
authClient.signIn.social({
provider: "google",
fetchOptions: { query }, // preserve PKCE/state
});
})
}
>
Sign in with Google
@@ -353,7 +353,7 @@ function Auth() {
onClick={() =>
window.requestAuth({
provider: "google", // sign in with social provider, redirecting directly to the provider
});
})
}
>
Sign in with Google
+2 -2
View File
@@ -207,7 +207,7 @@ If `authenticatedUsersOnly` is `false` - then it will be possible to trigger che
This plugin supports the Organization plugin. If you pass the organization ID to the Checkout referenceId, you will be able to keep track of purchases made from organization members.
```typescript
const organizationId = (await authClient.organization.list())?.data?.[0]?.id,
const organizationId = (await authClient.organization.list())?.data?.[0]?.id;
await authClient.checkout({
// Any Polar Product ID can be passed here
@@ -326,7 +326,7 @@ However, you can pass a `referenceId` to this method. This will return all subsc
So in order to figure out if a user should have access, pass the user's organization ID to see if there is an active subscription for that organization.
```typescript
const organizationId = (await authClient.organization.list())?.data?.[0]?.id,
const organizationId = (await authClient.organization.list())?.data?.[0]?.id;
const { data: subscriptions } = await authClient.customer.orders.list({
query: {