Sha256: a9f0def9ae1c8437274b365612bf2c1ac3611c787c8d7a802ff890c373367f01
Contents?: true
Size: 409 Bytes
Versions: 7
Compression:
Stored size: 409 Bytes
Contents
# frozen_string_literal: true module TestingAdapter require 'dotenv' def setup Dotenv.load @client = Gecko::Client.new(ENV["OAUTH_ID"], ENV["OAUTH_SECRET"], { site: 'http://api.lvh.me:3000', authorize_url: 'http://go.lvh.me:3000/oauth/authorize' }) @client.authorize_from_existing(ENV["ACCESS_TOKEN"], ENV["REFRESH_TOKEN"], Time.at(ENV["EXPIRES_AT"].to_i)) end end
Version data entries
7 entries across 7 versions & 1 rubygems