From 8c4d6bdad9599ed8e805b229a9546e9555ad4931 Mon Sep 17 00:00:00 2001 From: Elias Perez Date: Sat, 24 Feb 2024 09:51:02 -0500 Subject: [PATCH] Removes compiler warnings --- src/authly/client.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/authly/client.cr b/src/authly/client.cr index a959260..76d8827 100644 --- a/src/authly/client.cr +++ b/src/authly/client.cr @@ -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