rootstrap/rails_hotwire_base

View on GitHub
app/services/omniauth_sign_in_service.rb

Summary

Maintainability
A
0 mins
Test Coverage
class OmniauthSignInService
  def find_or_create_user!(auth_info:)
    User.find_or_create_by!(email: auth_info['email']) do |user|
      user.password = Devise.friendly_token[0, 20]
    end
  end
end