class LoginController < ApplicationController
	require 'jwt'
	include TokenHelper
	include OauthHelper

	def index
		if (@decoded_token["uuid"] != nil)
			if (Service.find_by(id: @decoded_token["uuid"]) != nil) # if they're already logged in
				redirect_to("/profile") and return
			end
		end
	end
end
