mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Merge branch 'dev' into inline-product-metadata
This commit is contained in:
commit
d27052b79c
9
docs/templates/others/convex.mdx
vendored
9
docs/templates/others/convex.mdx
vendored
@ -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).
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user