Commit 1e9cf58f by liyijie

Fix code_for feature

parent 55087b6a
...@@ -40,7 +40,7 @@ module RailsApiAuthentication ...@@ -40,7 +40,7 @@ module RailsApiAuthentication
def code_for params def code_for params
@auth_key = params[:auth_key]&.to_sym || :name @auth_key = params[:auth_key]&.to_sym || :name
valid_for params.merge( { key: @auth_key} ) valid_for params
end end
def oauth_for params={} def oauth_for params={}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment