Fix user creation failure handling in OAuth paths (#29207)

Co-authored-by: Matt Jankowski <matt@jankowski.online>
This commit is contained in:
Claire
2024-02-14 22:49:45 +01:00
parent 6499850ac4
commit 9e5af6bb58
4 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
OmniAuth.config.test_mode = true
def mock_omniauth(provider, data)
OmniAuth.config.mock_auth[provider] = OmniAuth::AuthHash.new(data)
end