Replies: 1 comment 3 replies
-
I'm reading this as multiple OAuth providers, like GitHub and Google, as examples. Is that right? What I would suggest for this then is a variant per provider. Then you'd need separate routes for each that would explicitly map to that variant. Please note, you'll need a separate type for the form serialization to work. We would probably benefit from having an example that demonstrates this. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am trying to build something with multiple o/auth types. By advice from Max, I've used the enum type for credentials like as follows:
And my
authenticate
simply looks like this:When I try to do the authenticate using the basic credentials on the frontend side I receive 422 with following error:
Failed to deserialize form body: invalid type: map, expected enum Credentials
.Any help appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions