Using both trestle-auth and trestle-omniauth on the same application gives error
Is there anyway I can use both trestle-auth and trestle-omniauth gem, if I added both then I got error like
: Invalid route name, already in use: 'login' (ArgumentError)
You may have defined two routes with the same name using the :as option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with resources as explained here:
https://guides.rubyonrails.org/routing.html#restricting-the-routes-created
As it currently stands, trestle-auth and trestle-omniauth aren't designed to work in conjunction. It is either-or.
Would you be able to describe your use case here? (I'm guessing password-based login + third-party oauth?) Then we can look into whether there needs to be functionality added to one (or both) libraries.