lib/doorkeeper/oauth/authorization/token.rb in doorkeeper-1.3.1 vs lib/doorkeeper/oauth/authorization/token.rb in doorkeeper-1.4.0

- old
+ new

@@ -17,9 +17,17 @@ expires_in: configuration.access_token_expires_in, use_refresh_token: false ) end + def native_redirect + { + controller: 'doorkeeper/token_info', + action: :show, + access_token: token.token + } + end + def configuration Doorkeeper.configuration end end end