summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-18 14:52:50 -0600
committermo khan <mo@mokhan.ca>2025-03-18 14:52:50 -0600
commit6b53e1e1d71f86b151f32e03026949b56fd26b43 (patch)
tree193973d21ee816505d0e24150b0980b32694e3e8 /bin
parent27a39dee821f49a0920a05d8cf2891367ced3656 (diff)
refactor: extract parameter for injecting a code_verifier
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ui4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ui b/bin/ui
index 3e6ea93..f5e1ba7 100755
--- a/bin/ui
+++ b/bin/ui
@@ -69,12 +69,12 @@ module OAuth
].join("?")
end
- def exchange(grant_type:, code:)
+ def exchange(grant_type:, code:, code_verifier: "not_implemented")
with_http do |client|
client.post(self[:token_endpoint], body: {
grant_type: grant_type,
code: code,
- code_verifier: "not_implemented"
+ code_verifier: code_verifier,
})
end
end