-
Notifications
You must be signed in to change notification settings - Fork 2k
docs: add page on authorization strategies #4396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 16.x.x
Are you sure you want to change the base?
docs: add page on authorization strategies #4396
Conversation
## Before you start | ||
|
||
All code examples in this guide use modern JavaScript with [ES module (ESM) syntax](https://nodejs.org/api/esm.html). | ||
To run them in Node.js, make sure to: | ||
|
||
- Add `"type": "module"` to your `package.json`, or | ||
- Use the `.mjs` file extension for your files | ||
|
||
These features are supported in Node 12+ and fully stable in Node 16 and later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoviDeCroock hello! @benjie and I were chatting today about using ESM syntax for JS code snippets. I used them here, and added this "Before you start" section to help readers with using them.
Thoughts? Open to all suggestions, this is a just a first pass on how we might approach converting all the JS snippets to ESM syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's a great shout! Let me run an LLM to get this going in #4400
Adds page on authorization strategies, right after authentication/middleware page
Also adds a "Before you start" section about using ESM syntax JS code snippets