Method: Redd::AuthStrategies::Web#authenticate

Defined in:
lib/redd/auth_strategies/web.rb

#authenticate(code) ⇒ Access

Authenticate with a code using the “web” flow.

Parameters:

  • code (String)

    the code returned by reddit

Returns:

  • (Access)


17
18
19
# File 'lib/redd/auth_strategies/web.rb', line 17

def authenticate(code)
  request_access('authorization_code', code: code, redirect_uri: @redirect_uri)
end