Skip to content

Quickstart/hono#512

Merged
cschetan77 merged 5 commits intomainfrom
quickstart/hono
Feb 9, 2026
Merged

Quickstart/hono#512
cschetan77 merged 5 commits intomainfrom
quickstart/hono

Conversation

@cschetan77
Copy link
Contributor

@cschetan77 cschetan77 commented Jan 28, 2026

By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

Adds a new QuickStart for auth0-hono SDK to get started with Hono based web application.

References

Code for the setup has been referenced from repo examples -

Testing

  • The QuickStart steps have been thoroughly tested.
  • Common issues that consumer could face have been documented under Troubleshooting

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not the default branch

@cschetan77 cschetan77 requested review from a team as code owners January 28, 2026 08:06
@github-actions
Copy link

github-actions bot commented Jan 28, 2026

Summary

Status Count
🔍 Total 56
✅ Successful 50
⏳ Timeouts 0
🔀 Redirected 2
👻 Excluded 2
❓ Unknown 0
🚫 Errors 2
⛔ Unsupported 0

Errors per input

Errors in main/docs/libraries.mdx

Redirects per input

Redirects in main/docs/libraries.mdx

Comment on lines 45 to 48
Optionally, if you want to load environment variables through dotenv
```shellscript
npm install -D dotenv
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't the user also have to configure it ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, assuming the user does not install dotenv, will the .env file in the next step work ?

Comment on lines 89 to 92
**Allowed Web Origins**
```
http://localhost:3000
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this ?

</Step>

<Step title="Add configuration (.env)" stepNumber={4}>
Create a `.env` file at your project root (if not created in previous step) with these values:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This says Create a .env file, but what if I used the CLI to use the generated ENV file?


```env
AUTH0_DOMAIN=YOUR_AUTH0_APP_DOMAIN
AUTH0_CLIENT_ID=YOUR_AUTH0_APP_DOMAIN
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YOUR_AUTH0_CLIENT_ID

Create a `.env` file at your project root (if not created in previous step) with these values:

```env
AUTH0_DOMAIN=YOUR_AUTH0_APP_DOMAIN
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason we call this YOUR_AUTH0_APP_DOMAIN? And not YOUR_AUTH0_DOMAIN?

```env
AUTH0_DOMAIN=YOUR_AUTH0_APP_DOMAIN
AUTH0_CLIENT_ID=YOUR_AUTH0_APP_DOMAIN
AUTH0_CLIENT_SECRET=YOUR_AUTH0_APP_CLIENT_SECRET
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason we call this YOUR_AUTH0_APP_CLIENT_SECRET? And not YOUR_AUTH0_CLIENT_SECRET?


```typescript
// index.ts
import 'dotenv/config';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above we say "you can also install dotenv", yet here we assume it is used. Is that expected?

@cschetan77
Copy link
Contributor Author

cschetan77 commented Feb 3, 2026

@frederikprijck Thanks for reviewing.

  1. I've moved the step of manual creation of .env file and populating variables under Dashboard section of step-3, since CLI section automatically generates it.
  2. .env file - Corrected and Renamed variable placeholder values to more appropriate.
  3. The Allowed Web Origins under Dashboard section got mistakenly pushed in, I've removed it.
  4. For dotenv package -
    1. Updated the instructions to clearly say - This quickstart uses dotenv package to load env vars. User could alternatively opt for another approach if user does not wish to install this package.
    2. Doesn't the user also have to configure it ? - I might not have understood the question. But if you meant, we missing the config code for it, then writing import dotenv/config as the first line, will do that automatically.

@cschetan77 cschetan77 merged commit 7a4dc65 into main Feb 9, 2026
5 checks passed
@cschetan77 cschetan77 deleted the quickstart/hono branch February 9, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants