Skip to content

Commit

Permalink
Removes compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasjpr committed Feb 24, 2024
1 parent 806c922 commit 8c4d6bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/authly/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ module Authly
@clients << client
end

def valid_redirect?(id, redirect_uri) : Bool
def valid_redirect?(client_id, redirect_uri) : Bool
any? do |client|
client.id == id && client.redirect_uri == redirect_uri
client.id == client_id && client.redirect_uri == redirect_uri
end
end

def authorized?(id, secret)
def authorized?(client_id, client_secret)
any? do |client|
client.id == id && client.secret == secret
client.id == client_id && client.secret == client_secret
end
end

def authorized?(id, secret, redirect_uri, code, verifier : String? = nil)
def authorized?(client_id, secret, redirect_uri, code, verifier : String? = nil)
any? do |client|
client.id == id && client.secret == secret && redirect_uri == redirect_uri
client.id == client_id && client.secret == secret && redirect_uri == redirect_uri
end
end

Expand Down

0 comments on commit 8c4d6bd

Please sign in to comment.