diff --git a/app/views/devise/sessions/_omniauthable.html.erb b/app/views/devise/sessions/_omniauthable.html.erb
new file mode 100644
index 00000000..e69de29b
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb
index af589843..350e5169 100644
--- a/app/views/devise/sessions/new.html.erb
+++ b/app/views/devise/sessions/new.html.erb
@@ -18,24 +18,7 @@
<%= f.button button_title(title: t(:sign_in), disabled_with: t(:signing_in)), class: 'base-button' %>
<% end %>
- <% if devise_mapping.omniauthable? %>
-
- <% if User.omniauth_providers.include?(:google_oauth2) %>
- <%= form_for '', url: omniauth_authorize_path(resource_name, :google_oauth2), data: { turbo: false }, method: :post do |f| %>
-
- <%= hidden_field_tag :state, { redir: params[:redir].to_s }.compact_blank.to_query %>
- <%= f.button button_title(title: t('sign_in_with_google'), icon: svg_icon('brand_google', class: 'w-6 h-6')), class: 'white-button w-full mt-4' %>
- <% end %>
- <% end %>
- <% if User.omniauth_providers.include?(:microsoft_office365) %>
- <%= form_for '', url: omniauth_authorize_path(resource_name, :microsoft_office365), data: { turbo: false }, method: :post do |f| %>
-
- <%= hidden_field_tag :state, { redir: params[:redir].to_s }.compact_blank.to_query, id: 'state_microsoft' %>
- <%= f.button button_title(title: t('sign_in_with_microsoft'), icon: svg_icon('brand_microsoft', class: 'w-6 h-6')), class: 'white-button w-full' %>
- <% end %>
- <% end %>
-
- <% end %>
+ <%= render 'omniauthable' %>
<%= render 'extra_links' %>
<%= render 'devise/shared/links' %>