Skip to content

Instantly share code, notes, and snippets.

@wcpaez
wcpaez / http_only_refresh_token.rb
Created August 9, 2022 03:25
Rack middleware to set and process HttpOnly refresh_token cookie. Works for doorkeper endpoint /oauth/token
# Doorkeeper HttpOnly middleware
class HttpOnlyRefreshToken
OAUTH_PATH = '/oauth/token'.freeze
def initialize(app)
@app = app
end
def call(env)