lib/omniauth/heart.rb
##
# This method creates a JSON Web Token (JWT) so that we can authenticate with
# the authorization server.
#
# Returns:
#   +String+::            Signed JSON Web Token
This method creates a JSON Web Token (JWT) so that we can authenticate with
the authorization server.

+String+::            Signed JSON Web Token
This method creates a JSON Web Token ( JWT ) so that we can authenticate with the authorization server . + String + :: Signed JSON Web Token
def jwt_token(claims)
        log :debug, "    ------ claims = #{claims.inspect} ------"
        log :debug, "    ------ jwt_signing_key = #{client_options.jwt_signing_key} ------"
        JWT.encode(claims, client_options.jwt_signing_key, 'RS256')
      end
def jwt_token ( claims ) log :debug , "    ------ claims = #{claims.inspect} ------" log :debug , "    ------ jwt_signing_key = #{client_options.jwt_signing_key} ------" JWT . encode ( claims , client_options . jwt_signing_key , 'RS256' ) end
This method creates a JSON Web Token (JWT) so that we can authenticate with
the authorization server.
This method creates a JSON Web Token ( JWT ) so that we can authenticate with the authorization server .
# Sign our claims with our private key.  The authorization server will  # contact our jwks_uri endpoint to get our public key to decode the JWT.
claims