mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 20:37: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
|
||||
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);
|
||||
if (!session) {
|
||||
if (!session) {
|
||||
/**
|
||||
* If the user is not logged in, we need to redirect them to the
|
||||
* login page.
|
||||
|
||||
Reference in New Issue
Block a user