vendor/cache/ruby/2.3.0/gems/warden-github-1.3.2/lib/warden/github/user.rb
# Identify if the browser session is still valid
#
# Returns: true if the browser session is still active or the GitHub API is unavailable
Identify if the browser session is still valid
Returns: true if the browser session is still active or the GitHub API is unavailable
Identify if the browser session is still valid Returns : true if the browser session is still active or the GitHub API is unavailable
def browser_session_valid?(since = 120)
        return true unless using_single_sign_out?
        client = api
        client.get("/user/sessions/active", browser_session_id: browser_session_id)
        client.last_response.status == 204
      rescue Octokit::ServerError 
        true
      rescue Octokit::ClientError => e 
        false
      end
def browser_session_valid? ( since = 120 ) return true unless using_single_sign_out? client = api client . get ( "/user/sessions/active" , browser_session_id : browser_session_id ) client . last_response . status == 204 rescue Octokit :: ServerError true rescue Octokit :: ClientError => e false end
Identify if the browser session is still valid
Returns: true if the browser session is still active or the GitHub API is unavailable
Identify if the browser session is still valid Returns : true if the browser session is still active or the GitHub API is unavailable
# GitHub API unavailable # GitHub API failed
since
<not_specific>