Merge branch 'dev' into inline-product-metadata

This commit is contained in:
BilalG1 2025-10-17 10:29:54 -07:00 committed by GitHub
commit d27052b79c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -50,9 +50,9 @@ export default {
Then, update your Convex client to use Stack Auth:
```ts
convexClient.setAuth(stackServerApp.getConvexClientAuth({})); // browser JS
convexReactClient.setAuth(stackServerApp.getConvexClientAuth({})); // React
convexHttpClient.setAuth(stackServerApp.getAuthForConvexHttpClient({ tokenStore: requestObject })); // HTTP, see Stack Auth docs for more information on tokenStore
convexClient.setAuth(stackClientApp.getConvexClientAuth({})); // browser JS
convexReactClient.setAuth(stackClientApp.getConvexClientAuth({})); // React
convexHttpClient.setAuth(stackClientApp.getConvexHttpClientAuth({ tokenStore: requestObject })); // HTTP, see Stack Auth docs for more information on tokenStore
```
### 5) Done!
@ -77,4 +77,5 @@ export const myQuery = query({
});
```
For more information on how to use Stack Auth, see the [Stack Auth docs](https://docs.stack-auth.com).
You can find the full example [here on GitHub](https://github.com/stack-auth/convex-next-template).

View File

@ -31,9 +31,9 @@ export default {
Then, update your Convex client to use Stack Auth:
```ts
convexClient.setAuth(stackServerApp.getConvexClientAuth()); // browser JS
convexReactClient.setAuth(stackServerApp.getConvexClientAuth()); // React
convexHttpClient.setAuth(stackServerApp.getAuthForConvexHttpClient({ tokenStore: requestObject })); // HTTP, see Stack Auth docs for more information on tokenStore
convexClient.setAuth(stackClientApp.getConvexClientAuth({})); // browser JS
convexReactClient.setAuth(stackClientApp.getConvexClientAuth({})); // React
convexHttpClient.setAuth(stackClientApp.getConvexHttpClientAuth({ tokenStore: requestObject })); // HTTP, see Stack Auth docs for more information on tokenStore
```
Now, you'll be able to access Stack Auth's functionality from your frontend & backend: