Module: Authkeeper::ApplicationHelper

Defined in:
app/helpers/authkeeper/application_helper.rb

Instance Method Summary collapse

Instance Method Details



5
6
7
8
9
10
11
12
13
14
# File 'app/helpers/authkeeper/application_helper.rb', line 5

def omniauth_link(provider, oauth_data=nil)
  case provider
  when :discord then discord_oauth_link
  when :github then github_oauth_link
  when :gitlab then gitlab_oauth_link
  when :google then google_oauth_link
  when :yandex then yandex_oauth_link
  when :vk then vk_oauth_link(oauth_data)
  end
end