Sha256: 9e8bc6a32e1472cf7768bd13aa0261c20ff4a6701edc66e653e4dc3fa3edc5a3
Contents?: true
Size: 375 Bytes
Versions: 156
Compression:
Stored size: 375 Bytes
Contents
module Services module Authorization module Tokens class Base CALLBACK_PATH = '/oauth/callback'.freeze def expires_at(expires_in) Time.current + (expires_in * 0.95).round end private def redirect_uri @request.protocol + @request.host_with_port + CALLBACK_PATH end end end end end
Version data entries
156 entries across 22 versions & 1 rubygems