Skip to content

Commit

Permalink
Fix small errors from the documentation (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
gguillemas authored Sep 10, 2024
1 parent e553731 commit 8832e08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ signin [ NS, DB, AC, ... ]
<code>...</code>
</td>
<td colspan="2" scope="row" data-label="Description">
Specifies any variables used by the record's SIGNUP method
Specifies any variables used by the record's SIGNIN method
</td>
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ In the below example, we check if the session may already be tied to an existing

```surql
DEFINE ACCESS user ON DATABASE TYPE RECORD
WITH JWT ALGORITHM HS512 KEY 'secret'
AUTHENTICATE {
IF $auth.id {
RETURN $auth.id;
} ELSE IF $token.email {
RETURN SELECT * FROM user WHERE email = $token.email;
};
}
WITH JWT ALGORITHM HS512 KEY 'secret'
;
```

Expand Down

0 comments on commit 8832e08

Please sign in to comment.