mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-17 21:22:29 -04:00
bd923299ec
* Amend `withCredentials` to `withToken` `withCredentials` was designed for our old auth model, where tokens were always issued by the SpacetimeDB host alongside an `Identity`, and therefore the bearer always knew their `Identity`. In our new auth model, a client may have a valid auth-able JWT but not know what `Identity` it will result in, as the `Identity` is computed based on the hash of some of the token's contents, and this hashing algorithm is not included in our client SDKs. As such, this PR revises `withCredentials` to `withToken`, which just accepts the token. * TypeScript puts ? on variables, not types * Prettier
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh