You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I see that @hono/oauth-providers supports discord, facebook, github, google, linkedin, x OAuth. I have just test for github and google and it works probably.
But I face a problem, I want to configure the URL that clients can be redirected after authorized successfully (redirect from Hono context, not from the providers, they are callbacks).
Then, I see that the googleAuth.ts has a options that can pass the state:
Are there any reasons so we cannot pass the state to the middlewares? From my side, I think it's inconsistent when we do like that. And of course, I love to have a parameter "state", it will help for my case. If there're no issues if we pass the state to the other providers, I can contribute to this project for completely.
Thanks for reading!
The text was updated successfully, but these errors were encountered:
Which middleware is the feature for?
@hono/oauth-providers
What is the feature you are proposing?
Currently, I see that
@hono/oauth-providers
supports discord, facebook, github, google, linkedin, x OAuth. I have just test for github and google and it works probably.But I face a problem, I want to configure the URL that clients can be redirected after authorized successfully (redirect from Hono context, not from the providers, they are callbacks).
Then, I see that the
googleAuth.ts
has a options that can pass the state:Then I can pass the
clientRedirectUrl
to the state, and extract it later.But when dealing with Github (or other providers like the code I see), they don't have parameter
state
?The above block is the
githubAuth.ts
for exampleAre there any reasons so we cannot pass the state to the middlewares? From my side, I think it's inconsistent when we do like that. And of course, I love to have a parameter "state", it will help for my case. If there're no issues if we pass the state to the other providers, I can contribute to this project for completely.
Thanks for reading!
The text was updated successfully, but these errors were encountered: