Skip to content

Commit

Permalink
docs: update auth part
Browse files Browse the repository at this point in the history
  • Loading branch information
mickasmt committed Jun 9, 2024
1 parent cef2154 commit dd1d26e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ pnpm run dev
> [!WARNING]
> You need update `.react-email` folder before use `pnpm run email`. Check the link [here](https://github.com/resend/react-email/issues/868#issuecomment-1828411325) if you have the error : `renderToReadableStream not found`
>
> After upgrade Auth.js to v5: `NEXTAUTH_URL` has removed from `.env.example`.
## Roadmap

Expand All @@ -76,7 +73,6 @@ pnpm run dev
- [x] ~Switch subscription plan (enable on stripe dashboard)~
- [x] ~Update documentation for installation & configuration~
- [ ] Improve blog design
- [ ] Improve dashboard design
- [ ] Upgrade eslint to v9
- [ ] Add resend for success subscriptions

Expand Down
14 changes: 11 additions & 3 deletions content/docs/configuration/authentification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ description: How to config the authentification.
you want.
</Callout>

<Callout type="danger" twClass="mt-3">
After upgrade Auth.js to v5: `NEXTAUTH_URL` has removed from `.env` file. Same
thing **in production**.
</Callout>

## Update auth_secret variable

The only environment variable that is mandatory is the `AUTH_SECRET`. This is a random value used by the library to encrypt tokens and email verification hashes. You can generate one via running:
Expand Down Expand Up @@ -51,6 +56,9 @@ Watch a youtube video from [CodeWithAntonio](https://www.youtube.com/@codewithan
- GoogleAuth **local** config at [3:24:30](https://www.youtube.com/watch?v=1MTyCvS05V4&t=12270s)
- Update GoogleAuth after **deployment** at [7:52:31](https://www.youtube.com/watch?v=1MTyCvS05V4&t=12270s)

<Callout type="warning">
The auth part is similar at the [authjs](https://authjs.dev/) documentation.
</Callout>
### Google config for this repo

<img
className="mt-4 overflow-hidden rounded-lg border"
src="/images/docs/gg-auth-config.jpg"
/>
Binary file added public/images/docs/gg-auth-config.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd1d26e

Please sign in to comment.