Replies: 1 comment
-
I tried reproducing the issue but couldn't figure it out what went wrong in the gist you shared. Here's a working example using the form you shared |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Am I introducing a bug or is this an issue?
When I put a button with social auth
formaction="?/login&provider=google"
in the same form as a button with aformaction
to submit without the provider param, the form tries to do the default action. Even if I have 2 forms, one that wraps my social auth and one that wraps my email/password auth, it still tries to use the default action.What's worse is that can clearly see that it is using the formaction that I intended, because it is trying to route to
<hostname>/?login&provider=google
.Did I find an issue with SvelteKit? Why is it trying to use the default action when no default action is specified?
Here's a gist you can have a look at: https://gist.github.com/rogadev/5ef318c54bc81c95c0909ae4165d9e52
Beta Was this translation helpful? Give feedback.
All reactions