docs/specs: correct typos

This commit is contained in:
ffabss committed 2020-12-26 16:35:31 +01:00
1 parent 77d37f7f02
commit 229eb4e13d
3 files changed
+4 -4

No files matched your search

@@ -53,7 +53,7 @@ A valid refresh token that was returned on login.
## Examples
### Get a new access and refresh token using a valied refresh_token
### Get a new access and refresh token using a valid refresh_token
+2 -2
View File
@@ -29,7 +29,7 @@ A few reasons:
#### What are the benefits?
1. The beauty of listening to the replication functionality is that you can make changes to your database from anywhere - your API, directly in the DB, via a console etc - and you will still receive the changes via websockets.
2. Decoupling. For example, if you want to send a new slack message every time someone makes a new purchase you might build that funcitonality directly into your API. This allows you to decouple your async functionality from your API.
2. Decoupling. For example, if you want to send a new slack message every time someone makes a new purchase you might build that functionality directly into your API. This allows you to decouple your async functionality from your API.
3. This is built with Phoenix, an [extremely scalable Elixir framework](https://www.phoenixframework.org/blog/the-road-to-2-million-websocket-connections)
@@ -57,7 +57,7 @@ There are a some requirements for your database
1. it must have the `wal_level` set to logical. You can check this by running `SHOW wal_level;`. To set the `wal_level`, you can call `ALTER SYSTEM SET wal_level = logical;`
2. You must set `max_replication_slots` to at least 1: `ALTER SYSTEM SET max_replication_slots = 5;`
3. Create a `PUBLICATION` for this server to listen to: `CREATE PUBLICATION supabase_realtime FOR ALL TABLES;`
4. [OPTIONAL] If you want to recieve the old record (previous values) on UDPATE and DELETE, you can set the `REPLICA IDENTITY` to `FULL` like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;`. This has to be set for each table unfortunately.
4. [OPTIONAL] If you want to receive the old record (previous values) on UDPATE and DELETE, you can set the `REPLICA IDENTITY` to `FULL` like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;`. This has to be set for each table unfortunately.
### Server set up
+1 -1
View File
@@ -259,7 +259,7 @@ pages:
api.refreshAccessToken:
$ref: '"GoTrueApi".GoTrueApi.refreshAccessToken'
examples:
- name: Get a new access and refresh token using a valied refresh_token
- name: Get a new access and refresh token using a valid refresh_token
js: |
```js
const { error, data } = await api