Sha256: 63a15f46f4bf917fdd89c81cb27a16894379c37fb0eed5628fca635e2ee179ee
Contents?: true
Size: 587 Bytes
Versions: 15
Compression:
Stored size: 587 Bytes
Contents
# see https://www.firebase.com/docs/ios/guide/login/github.html for more info # (that's where this code came from) class Firebase def self.github_token=(value) @github_token = value end def self.github_token @github_token end def self.open_github_session(options={}, &block) self.new.open_github_session(options={}, &block) end def open_github_session(options={}, &block) ref = self token = options[:token] || Firebase.github_token raise "token is required in #{__method__}" unless token firebase_ref.login_to_github('github', token) end end
Version data entries
15 entries across 15 versions & 1 rubygems