class OmniAuth::AuthHash

def valid?

more details there.
valid info hash. See InfoHash#valid? for
are that it has a provider name, a uid, and a
OmniAuth AuthHash. The requirements for that
Tells you if this is considered to be a valid
def valid?
  uid? && provider? && info? && info.valid?
end