module Doorkeeper::AccessGrantMixin::ClassMethods
def generate_code_challenge(code_verifier)
-
(#to_s)
- An encoded code challenge based on the provided verifier
Parameters:
-
code_verifier
(#to_s
) -- a one time use value (any object that responds to `#to_s`)
def generate_code_challenge(code_verifier) Base64.urlsafe_encode64(Digest::SHA256.digest(code_verifier), padding: false) end