module NimbleAuth::Concerns::Identity
Public Class Methods
create_for(oauth:, user:)
click to toggle source
# File lib/nimble_auth/concerns/identity.rb, line 12 def create_for(oauth:, user:) create!( uid: oauth[:uid], provider: oauth[:provider], oauth_token: oauth.dig(:credentials, :token), user_id: user.id ) end