Skip to content
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

how to access env outside fetch, when working with oauth-handlers #398

Open
KunalSin9h opened this issue Feb 16, 2024 · 1 comment
Open

Comments

@KunalSin9h
Copy link
Contributor

  githubAuth({
    client_id: Bun.env.GITHUB_ID,
    client_secret: Bun.env.GITHUB_SECRET,

I see, @yusukebe you have used Bun.env, but without using Bun how can i get the env from .env files.

@yusukebe
Copy link
Member

Hi @KunalSin9h

You may use the env() function in hono/adapter.

https://hono.dev/helpers/adapter#env

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

No branches or pull requests

2 participants