mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-20 20:26:55 -05:00
docs: fix Electron and Polar example syntax (#11587)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user