mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 12:27:44 +00:00
docs(strupe): add query param in for list sub referenceId
This commit is contained in:
@@ -278,7 +278,9 @@ await client.subscription.upgrade({
|
|||||||
|
|
||||||
// List subscriptions for an organization
|
// List subscriptions for an organization
|
||||||
const { data: subscriptions } = await client.subscription.list({
|
const { data: subscriptions } = await client.subscription.list({
|
||||||
referenceId: "org_123456"
|
query: {
|
||||||
|
referenceId: "org_123456"
|
||||||
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export async function authorize(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
const session = await getSessionFromCtx(ctx);
|
const session = await getSessionFromCtx(ctx);
|
||||||
if (!session) {
|
if (!session) {
|
||||||
/**
|
/**
|
||||||
* If the user is not logged in, we need to redirect them to the
|
* If the user is not logged in, we need to redirect them to the
|
||||||
* login page.
|
* login page.
|
||||||
|
|||||||
Reference in New Issue
Block a user