Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
google auth - Hono
H
Hono
•
16mo ago
•
3 replies
AmaraFray
google auth
what does this even do
, what is it supposed to be expecting
(Required parameters were not found
. Please provide them to proceed
. i get this error
)
await googleAuth
(
{
client
_id
: c
.env
.GOOGLE
_ID
,
client
_secret
: c
.env
.GOOGLE
_SECRET
,
redirect
_uri
:
'
http://localhost:5173/auth/google/callback
'
,
scope
:
[
'openid
'
,
'email
'
,
'profile
'
]
,
}
)
(c
, next
)
minimum reproducable code
const app
= new OpenAPIHono
(
)
app
.get
(
'
/auth
/google
/sign
-in
'
,
async
(c
: Context
, next
)
=
>
{
await googleAuth
(
{
client
_id
: c
.env
.GOOGLE
_ID
,
client
_secret
: c
.env
.GOOGLE
_SECRET
,
redirect
_uri
:
'
http://localhost:5173/auth/google/callback
'
,
scope
:
[
'openid
'
,
'email
'
,
'profile
'
]
,
}
)
(c
, next
)
}
,
(c
)
=
>
{
const token
= c
.get
(
'token
'
)
const grantedScopes
= c
.get
(
'granted
-scopes
'
)
const user
= c
.get
(
'user
-google
'
)
return c
.json
(
{
token
,
grantedScopes
,
user
,
}
)
}
)
Hono
Join
This is the official Hono discord server for the community
4,418
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Cannot parse action at /api/auth/providers also /api/auth/error (Next Auth .vs Cognito AWS)
H
Hono / help
17mo ago
hono with better-auth
H
Hono / help
5mo ago
Hono and Better-Auth
H
Hono / help
9mo ago
Auth0 and Hono
H
Hono / help
8mo ago