From 8832e08916b870b7da0b6502a6f0fbb1ed0ec91a Mon Sep 17 00:00:00 2001 From: Gerard Guillemas Martos Date: Tue, 10 Sep 2024 10:22:17 +0200 Subject: [PATCH] Fix small errors from the documentation (#835) --- doc-surrealdb_versioned_docs/version-latest/integration/rpc.mdx | 2 +- .../surrealql/statements/define/access/record.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc-surrealdb_versioned_docs/version-latest/integration/rpc.mdx b/doc-surrealdb_versioned_docs/version-latest/integration/rpc.mdx index 530fd8412..d3fbf7a72 100644 --- a/doc-surrealdb_versioned_docs/version-latest/integration/rpc.mdx +++ b/doc-surrealdb_versioned_docs/version-latest/integration/rpc.mdx @@ -356,7 +356,7 @@ signin [ NS, DB, AC, ... ] ... - Specifies any variables used by the record's SIGNUP method + Specifies any variables used by the record's SIGNIN method diff --git a/doc-surrealdb_versioned_docs/version-latest/surrealql/statements/define/access/record.mdx b/doc-surrealdb_versioned_docs/version-latest/surrealql/statements/define/access/record.mdx index 2f1675ebe..9edb24e9b 100644 --- a/doc-surrealdb_versioned_docs/version-latest/surrealql/statements/define/access/record.mdx +++ b/doc-surrealdb_versioned_docs/version-latest/surrealql/statements/define/access/record.mdx @@ -188,6 +188,7 @@ 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; @@ -195,7 +196,6 @@ DEFINE ACCESS user ON DATABASE TYPE RECORD RETURN SELECT * FROM user WHERE email = $token.email; }; } - WITH JWT ALGORITHM HS512 KEY 'secret' ; ```