diff --git a/docs/versioned_docs/version-8.4/cli-commands.md b/docs/versioned_docs/version-8.4/cli-commands.md index 24326dc39c08..51e1634700d7 100644 --- a/docs/versioned_docs/version-8.4/cli-commands.md +++ b/docs/versioned_docs/version-8.4/cli-commands.md @@ -21,7 +21,7 @@ We use [yargs](http://yargs.js.org/) and borrow its syntax here: yarn redwood generate page [path] --option ``` -- `redwood g page` is the command. +- `redwood generate page` is the command. - `` and `[path]` are positional arguments. - `<>` denotes a required argument. - `[]` denotes an optional argument. diff --git a/docs/versioned_docs/version-8.4/how-to/oauth.md b/docs/versioned_docs/version-8.4/how-to/oauth.md index 1c52a9c8968e..da9ad9f65ee9 100644 --- a/docs/versioned_docs/version-8.4/how-to/oauth.md +++ b/docs/versioned_docs/version-8.4/how-to/oauth.md @@ -578,6 +578,8 @@ Don't forget the new `CryptoJS` import at the top! ```js title="/api/src/functions/oauth/oauth.js" // highlight-next-line import CryptoJS from 'crypto-js' +import { cookieName } from '@redwoodjs/auth-dbauth-api' +import { cookieName as cookie } from 'src/lib/auth' const callback = async (event) => { const { code } = event.queryStringParameters @@ -643,7 +645,8 @@ const secureCookie = (user) => { data, process.env.SESSION_SECRET ).toString() - + //if you're using dbAuth v7.6.2, you have to change the cookie name. You can comment out the line below and make the next line as comment. + //return [`${cookieName(cookie)}=${encrypted}`, ...cookieAttrs].join('; ') return [`session=${encrypted}`, ...cookieAttrs].join('; ') } // highlight-end diff --git a/docs/versioned_docs/version-8.4/tutorial/chapter4/deployment.md b/docs/versioned_docs/version-8.4/tutorial/chapter4/deployment.md index 19a3cf6771e5..460e708d90ef 100644 --- a/docs/versioned_docs/version-8.4/tutorial/chapter4/deployment.md +++ b/docs/versioned_docs/version-8.4/tutorial/chapter4/deployment.md @@ -119,7 +119,7 @@ const signupOptions = { // ... ``` -The signup page itself is still visible, however. To remove it completely, remove the `` in the Router, and remove the "Don't have an acocunt? Sign up!" link on the login page. +The signup page itself is still visible, however. To remove it completely, remove the `` in the Router, and remove the "Don't have an account? Sign up!" link on the login page. Be sure to save your changes, then run `grove deploy` to push the changes live. Take that, hackers! diff --git a/docs/versioned_docs/version-8.4/tutorial/chapter5/testing.md b/docs/versioned_docs/version-8.4/tutorial/chapter5/testing.md index f9c4ad47d53a..9caed4dbbdc0 100644 --- a/docs/versioned_docs/version-8.4/tutorial/chapter5/testing.md +++ b/docs/versioned_docs/version-8.4/tutorial/chapter5/testing.md @@ -49,7 +49,7 @@ Note that the summary on the bottom indicates that there was 1 test that failed. If you continued with your own repo from chapters 1-4, you may see some other failures here or none at all: we made a lot of changes to the pages, components and cells we generated, but didn't update the tests to reflect the changes we made. (Another reason to start with the [example repo](../intermission.md#using-the-example-repo-recommended)!) -To switch back to the default mode where test are **o**nly run for changed files, press `o` now (or quit and restart `yarn rw test`). +To switch back to the default mode where test are **only** run for changed files, press `o` now (or quit and restart `yarn rw test`). What we want to aim for is all green in that left column and no failed tests. In fact best practices tell us you should not even commit any code to your repo unless the test suite passes locally. Not everyone adheres to this policy quite as strictly as others..._<cough, cough>_