mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
fix type
This commit is contained in:
parent
6b2f9da703
commit
afa6e5a31a
2
docs/templates/others/convex.mdx
vendored
2
docs/templates/others/convex.mdx
vendored
@ -52,7 +52,7 @@ Then, update your Convex client to use Stack Auth:
|
||||
```ts
|
||||
convexClient.setAuth(stackClientApp.getConvexClientAuth({})); // browser JS
|
||||
convexReactClient.setAuth(stackClientApp.getConvexClientAuth({})); // React
|
||||
convexHttpClient.setAuth(stackClientApp.getAuthForConvexHttpClient({ tokenStore: requestObject })); // HTTP, see Stack Auth docs for more information on tokenStore
|
||||
convexHttpClient.setAuth(stackClientApp.getConvexHttpClientAuth({ tokenStore: requestObject })); // HTTP, see Stack Auth docs for more information on tokenStore
|
||||
```
|
||||
|
||||
### 5) Done!
|
||||
|
||||
@ -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