truemail-rb/truemail-rack

View on GitHub
app/truemail_server/services/access_token.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module TruemailServer
  module Services
    class AccessToken
      def self.validate(token)
        System::Configuration.command_line_params[:access_tokens].include?(token)
      end
    end
  end
end