title: Django Rest Framework & Vue.js; login via Google account; "User is already registered with this e-mail address."
body: <p>I have some trubbles with loggin to my web site via Google account. I created registarion via Google (using vue-google-login then sending that data to my backend to dj-rest-auth/google/) and thats work fine. But if I'm trying to log in user I get a response from my backend server &quot;user is already registered with this email address&quot;. What can I do to make users sign in into my web app via Google account? How can I log in user but not register?</p>
  <p>I would be grateful if somebody give answers because I loose too much time debuging and searching the answers. I'll put my code below. If you need more info - just let me know.</p>
  <p>Thank you!</p>
  <pre class="lang-py prettyprint-override"><code># authenticate.views
  from allauth.socialaccount.providers.google.views import GoogleOAuth2Adapter
  from dj_rest_auth.registration.views import SocialLoginView
  
  class GoogleLogin(SocialLoginView):
      adapter_class = GoogleOAuth2Adapter
  
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>#authenticate.urls
  from django.urls import path
  from . import views
  urlpatterns = [
      path('google/', views.GoogleLogin.as_view(), name='google_login')
  ]
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>#backend_main.urls
  from django.contrib import admin
  from django.urls import path, include
  from django.conf.urls import url
  from authentication.views import GoogleLogin
  
  from backend_main.api_views import get_router_urls
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('hr-api/', include(get_router_urls())),
      path('demo-hr-api/', include('backend_main.urls')),
      path('accounts/', include('allauth.urls'), name='socialaccount_signup'),
      path('dj-rest-auth/', include('dj_rest_auth.urls')),
      path('dj-rest-auth/registration/', include('dj_rest_auth.registration.urls')),
      path('dj-rest-auth/google/', GoogleLogin.as_view(), name='google_login'),
  ]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/zXXoC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zXXoC.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/Ke64A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ke64A.png" alt="enter image description here" /></a></p>